Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 8ddd09e27d5235f0175fd6ef80bf2c61a1eb2cc0..39835fd3a23639c55176664bbb1a04c63ad06bc3 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -28,7 +28,6 @@ |
#include "chrome/browser/autocomplete/autocomplete_classifier.h" |
#include "chrome/browser/autocomplete/shortcuts_backend.h" |
#include "chrome/browser/background/background_contents_service_factory.h" |
-#include "chrome/browser/background/background_mode_manager.h" |
#include "chrome/browser/bookmarks/bookmark_model_factory.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chrome_notification_types.h" |
@@ -117,6 +116,10 @@ |
#include "components/user_manager/user_manager.h" |
#endif |
+#if defined(ENABLE_BACKGROUND) |
+#include "chrome/browser/background/background_mode_manager.h" |
+#endif |
+ |
#if defined(ENABLE_CONFIGURATION_POLICY) |
#include "chrome/browser/policy/schema_registry_service.h" |
#include "chrome/browser/policy/schema_registry_service_factory.h" |
@@ -574,6 +577,7 @@ void ProfileImpl::DoFinalInit() { |
ssl_config_service_manager_.reset( |
SSLConfigServiceManager::CreateDefaultManager(local_state)); |
+#if defined(ENABLE_BACKGROUND) |
// Initialize the BackgroundModeManager - this has to be done here before |
// InitExtensions() is called because it relies on receiving notifications |
// when extensions are loaded. BackgroundModeManager is not needed under |
@@ -588,6 +592,7 @@ void ProfileImpl::DoFinalInit() { |
if (g_browser_process->background_mode_manager()) |
g_browser_process->background_mode_manager()->RegisterProfile(this); |
} |
+#endif // defined(ENABLE_BACKGROUND) |
base::FilePath cookie_path = GetPath(); |
cookie_path = cookie_path.Append(chrome::kCookieFilename); |