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

Unified Diff: chrome/browser/background_sync/background_sync_controller_impl.cc

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: chrome/browser/background_sync/background_sync_controller_impl.cc
diff --git a/chrome/browser/background_sync/background_sync_controller_impl.cc b/chrome/browser/background_sync/background_sync_controller_impl.cc
index 895f8aeb28e5e2c565b42a3db22e0fb0a33e5c69..08fb008bd61184a3c1459e5d7c7a6699c95e73d3 100644
--- a/chrome/browser/background_sync/background_sync_controller_impl.cc
+++ b/chrome/browser/background_sync/background_sync_controller_impl.cc
@@ -8,7 +8,7 @@
#include "chrome/browser/profiles/profile.h"
#include "components/rappor/rappor_utils.h"
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
Ted C 2015/11/30 19:39:05 This class doesn't seem UI related either. Don't
no sievers 2015/11/30 23:56:34 I think eventually we probably want it, but it nee
#include "chrome/browser/android/background_sync_launcher_android.h"
#endif
@@ -39,7 +39,7 @@ void BackgroundSyncControllerImpl::RunInBackground(bool enabled,
if (profile_->IsOffTheRecord())
return;
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
BackgroundSyncLauncherAndroid::LaunchBrowserIfStopped(enabled, min_ms);
#else
// TODO(jkarlin): Use BackgroundModeManager to enter background mode. See

Powered by Google App Engine
This is Rietveld 408576698