| 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/views/ash/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/prefs/pref_change_registrar.h" | 8 #include "chrome/browser/prefs/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" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // Use same gesture preferences on incognito windows. | 215 // Use same gesture preferences on incognito windows. |
| 216 return true; | 216 return true; |
| 217 } | 217 } |
| 218 | 218 |
| 219 bool GesturePrefsObserverFactoryAura::ServiceIsNULLWhileTesting() { | 219 bool GesturePrefsObserverFactoryAura::ServiceIsNULLWhileTesting() { |
| 220 // Some tests replace the PrefService of the TestingProfile after the | 220 // Some tests replace the PrefService of the TestingProfile after the |
| 221 // GesturePrefsObserver has been created, which makes Shutdown() | 221 // GesturePrefsObserver has been created, which makes Shutdown() |
| 222 // remove the registrar from a non-existent PrefService. | 222 // remove the registrar from a non-existent PrefService. |
| 223 return true; | 223 return true; |
| 224 } | 224 } |
| OLD | NEW |