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/media_galleries/media_galleries_preferences_factory.h" | 5 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" |
6 | 6 |
7 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 7 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
8 #include "chrome/browser/prefs/pref_registry_syncable.h" | |
9 #include "chrome/browser/profiles/profile_dependency_manager.h" | 8 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 9 #include "components/user_prefs/pref_registry_syncable.h" |
10 | 10 |
11 // static | 11 // static |
12 chrome::MediaGalleriesPreferences* | 12 chrome::MediaGalleriesPreferences* |
13 MediaGalleriesPreferencesFactory::GetForProfile(Profile* profile) { | 13 MediaGalleriesPreferencesFactory::GetForProfile(Profile* profile) { |
14 return static_cast<chrome::MediaGalleriesPreferences*>( | 14 return static_cast<chrome::MediaGalleriesPreferences*>( |
15 GetInstance()->GetServiceForProfile(profile, true)); | 15 GetInstance()->GetServiceForProfile(profile, true)); |
16 } | 16 } |
17 | 17 |
18 // static | 18 // static |
19 MediaGalleriesPreferencesFactory* | 19 MediaGalleriesPreferencesFactory* |
(...skipping 13 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 void MediaGalleriesPreferencesFactory::RegisterUserPrefs( | 35 void MediaGalleriesPreferencesFactory::RegisterUserPrefs( |
36 PrefRegistrySyncable* prefs) { | 36 PrefRegistrySyncable* prefs) { |
37 chrome::MediaGalleriesPreferences::RegisterUserPrefs(prefs); | 37 chrome::MediaGalleriesPreferences::RegisterUserPrefs(prefs); |
38 } | 38 } |
39 | 39 |
40 bool MediaGalleriesPreferencesFactory::ServiceRedirectedInIncognito() const { | 40 bool MediaGalleriesPreferencesFactory::ServiceRedirectedInIncognito() const { |
41 return true; | 41 return true; |
42 } | 42 } |
OLD | NEW |