提交 6a2f5809 编写于 作者: M Matt Perry

Turn on FLX updater.

上级 240e2c50
......@@ -24,8 +24,6 @@ import org.chromium.mojo.system.MojoException;
public class UpdateService extends Service {
private static final String TAG = "UpdateService";
private static final int REQUEST_CODE = 0; // Not sure why this is needed.
private static final boolean ENABLED = false;
private static final boolean TESTING = false;
private long mNativePtr = 0;
......@@ -46,7 +44,6 @@ public class UpdateService extends Service {
}
public static void init(Context context) {
if (ENABLED || TESTING)
maybeScheduleUpdateCheck(context);
}
......@@ -54,7 +51,7 @@ public class UpdateService extends Service {
Intent alarm = new Intent(context, UpdateService.class);
PendingIntent existingIntent = PendingIntent.getService(
context, REQUEST_CODE, alarm, PendingIntent.FLAG_NO_CREATE);
if (existingIntent != null && !TESTING) {
if (existingIntent != null) {
Log.i(TAG, "Update alarm exists: " + PathUtils.getDataDirectory(context));
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册