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..3c9238b780ee549bf050d38b17d192eeb2887602 100644 |
--- a/chrome/browser/background_sync/background_sync_controller_impl.cc |
+++ b/chrome/browser/background_sync/background_sync_controller_impl.cc |
@@ -6,9 +6,10 @@ |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/profiles/profile.h" |
+#include "chrome/common/features.h" |
#include "components/rappor/rappor_utils.h" |
-#if defined(OS_ANDROID) |
+#if BUILDFLAG(ANDROID_JAVA_UI) |
#include "chrome/browser/android/background_sync_launcher_android.h" |
#endif |
@@ -39,7 +40,7 @@ void BackgroundSyncControllerImpl::RunInBackground(bool enabled, |
if (profile_->IsOffTheRecord()) |
return; |
-#if defined(OS_ANDROID) |
+#if BUILDFLAG(ANDROID_JAVA_UI) |
BackgroundSyncLauncherAndroid::LaunchBrowserIfStopped(enabled, min_ms); |
#else |
// TODO(jkarlin): Use BackgroundModeManager to enter background mode. See |