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

Unified Diff: chrome/browser/ui/gesture_prefs_observer_factory_aura.cc

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 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 95434890dc011db1fffbf745c4cca004e27a7c31..5efd242841bfcb46169df74e09c16964da7a41f6 100644
--- a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
+++ b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/prefs/pref_change_registrar.h"
#include "base/prefs/pref_service.h"
+#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/common/chrome_notification_types.h"
@@ -534,9 +535,11 @@ bool GesturePrefsObserverFactoryAura::ServiceIsCreatedWithProfile() const {
return true;
}
-bool GesturePrefsObserverFactoryAura::ServiceRedirectedInIncognito() const {
+content::BrowserContext*
+GesturePrefsObserverFactoryAura::GetBrowserContextToUse(
+ content::BrowserContext* context) const {
// Use same gesture preferences on incognito windows.
- return true;
+ return chrome::GetBrowserContextRedirectedInIncognito(context);
}
bool GesturePrefsObserverFactoryAura::ServiceIsNULLWhileTesting() const {
« 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