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

Unified Diff: chrome/browser/ui/gesture_prefs_observer_factory_aura.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
diff --git a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
index 54aacab9038ae24a1dd01eadc7e402e5a72301fd..95434890dc011db1fffbf745c4cca004e27a7c31 100644
--- a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
+++ b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
@@ -354,8 +354,8 @@ GesturePrefsObserverFactoryAura::GesturePrefsObserverFactoryAura()
GesturePrefsObserverFactoryAura::~GesturePrefsObserverFactoryAura() {}
ProfileKeyedService* GesturePrefsObserverFactoryAura::BuildServiceInstanceFor(
- Profile* profile) const {
- return new GesturePrefsObserver(profile->GetPrefs());
+ content::BrowserContext* profile) const {
+ return new GesturePrefsObserver(static_cast<Profile*>(profile)->GetPrefs());
}
void GesturePrefsObserverFactoryAura::RegisterOverscrollPrefs(
« no previous file with comments | « chrome/browser/ui/gesture_prefs_observer_factory_aura.h ('k') | chrome/browser/ui/global_error/global_error_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698