OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" | 5 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 8 #include "base/prefs/public/pref_change_registrar.h" |
9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/profiles/profile_dependency_manager.h" | 11 #include "chrome/browser/profiles/profile_dependency_manager.h" |
12 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "ui/base/gestures/gesture_configuration.h" | 15 #include "ui/base/gestures/gesture_configuration.h" |
16 | 16 |
17 using ui::GestureConfiguration; | 17 using ui::GestureConfiguration; |
18 | 18 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // Use same gesture preferences on incognito windows. | 262 // Use same gesture preferences on incognito windows. |
263 return true; | 263 return true; |
264 } | 264 } |
265 | 265 |
266 bool GesturePrefsObserverFactoryAura::ServiceIsNULLWhileTesting() const { | 266 bool GesturePrefsObserverFactoryAura::ServiceIsNULLWhileTesting() const { |
267 // Some tests replace the PrefService of the TestingProfile after the | 267 // Some tests replace the PrefService of the TestingProfile after the |
268 // GesturePrefsObserver has been created, which makes Shutdown() | 268 // GesturePrefsObserver has been created, which makes Shutdown() |
269 // remove the registrar from a non-existent PrefService. | 269 // remove the registrar from a non-existent PrefService. |
270 return true; | 270 return true; |
271 } | 271 } |
OLD | NEW |