Chromium Code Reviews

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/ui/ash/app_sync_ui_state_factory.h ('k') | chrome/browser/ui/bookmarks/bookmark_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/app_sync_ui_state_factory.cc
diff --git a/chrome/browser/ui/ash/app_sync_ui_state_factory.cc b/chrome/browser/ui/ash/app_sync_ui_state_factory.cc
index 6967df9ae6fdf26bccf2fdf8af76ec9101cdd87b..e28473496915d4bf72aed1de58cdd0fa9f7a5350 100644
--- a/chrome/browser/ui/ash/app_sync_ui_state_factory.cc
+++ b/chrome/browser/ui/ash/app_sync_ui_state_factory.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/ash/app_sync_ui_state_factory.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/ash/app_sync_ui_state.h"
@@ -32,7 +33,8 @@ AppSyncUIStateFactory::~AppSyncUIStateFactory() {
}
ProfileKeyedService* AppSyncUIStateFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
DCHECK(AppSyncUIState::ShouldObserveAppSyncForProfile(profile));
return new AppSyncUIState(profile);
}
« no previous file with comments | « chrome/browser/ui/ash/app_sync_ui_state_factory.h ('k') | chrome/browser/ui/bookmarks/bookmark_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine