Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: content/browser/android/background_sync_launcher_android.cc

Issue 1324173002: [Background Sync] Use GcmNetworkManager to start the browser for sync events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@bgsync-fix-background5
Patch Set: Reinstate preference code; reschedule tasks on package upgrade Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/background_sync_launcher_android.cc
diff --git a/content/browser/android/background_sync_launcher_android.cc b/content/browser/android/background_sync_launcher_android.cc
index 693817baa8a8174bad383aac37131c9531a0603e..0aaa987cc9716626a3261ca1249217359c561c97 100644
--- a/content/browser/android/background_sync_launcher_android.cc
+++ b/content/browser/android/background_sync_launcher_android.cc
@@ -45,7 +45,7 @@ void BackgroundSyncLauncherAndroid::LaunchBrowserWhenNextOnlineImpl(
bool now_launching = !launch_when_next_online_registrants_.empty();
if (was_launching != now_launching) {
JNIEnv* env = base::android::AttachCurrentThread();
- Java_BackgroundSyncLauncher_setLaunchWhenNextOnline(
+ Java_BackgroundSyncLauncher_launchBrowserWhenNextOnlineIfStopped(
env, java_launcher_.obj(), base::android::GetApplicationContext(),
now_launching);
}

Powered by Google App Engine
This is Rietveld 408576698