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

Unified Diff: chrome/browser/ui/ash/app_sync_ui_state.cc

Issue 11365181: Remove GetExtensionService from Profile. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: response to sky Created 8 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/ui/ash/app_sync_ui_state.cc
diff --git a/chrome/browser/ui/ash/app_sync_ui_state.cc b/chrome/browser/ui/ash/app_sync_ui_state.cc
index 25457f3a3e7bcd4130e054383ffb475e05f30faa..25e44d7f39ac9b80ec45711973ddce808f8f4e99 100644
--- a/chrome/browser/ui/ash/app_sync_ui_state.cc
+++ b/chrome/browser/ui/ash/app_sync_ui_state.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/ash/app_sync_ui_state.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/extensions/pending_extension_manager.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -122,8 +123,9 @@ void AppSyncUIState::CheckAppSync() {
return;
const bool synced = sync_service_->ShouldPushChanges();
- const bool has_pending_extension = profile_->GetExtensionService()->
- pending_extension_manager()->HasPendingExtensionFromSync();
+ const bool has_pending_extension =
+ extensions::ExtensionSystem::Get(profile_)->extension_service()->
+ pending_extension_manager()->HasPendingExtensionFromSync();
if (synced && !has_pending_extension)
SetStatus(STATUS_NORMAL);

Powered by Google App Engine
This is Rietveld 408576698