Index: chrome/browser/sync/glue/app_notification_data_type_controller.cc |
diff --git a/chrome/browser/sync/glue/app_notification_data_type_controller.cc b/chrome/browser/sync/glue/app_notification_data_type_controller.cc |
index 6b6d01e6bef9edea2090d9eeab53d7a3a6b3102c..1fef9087e75b78fa0453976a119ffa5409ff01f8 100644 |
--- a/chrome/browser/sync/glue/app_notification_data_type_controller.cc |
+++ b/chrome/browser/sync/glue/app_notification_data_type_controller.cc |
@@ -7,6 +7,7 @@ |
#include "base/metrics/histogram.h" |
#include "chrome/browser/extensions/app_notification_manager.h" |
#include "chrome/browser/extensions/extension_service.h" |
+#include "chrome/browser/extensions/extension_system.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/sync/glue/generic_change_processor.h" |
#include "chrome/browser/sync/profile_sync_components_factory.h" |
@@ -44,7 +45,8 @@ AppNotificationDataTypeController::~AppNotificationDataTypeController() { |
extensions::AppNotificationManager* |
AppNotificationDataTypeController::GetAppNotificationManager() { |
- return profile_->GetExtensionService()->app_notification_manager(); |
+ return extensions::ExtensionSystem::Get(profile_)->extension_service()-> |
+ app_notification_manager(); |
} |
// We want to start the extensions::AppNotificationManager before we begin |