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_gallery/media_galleries_preferences_factory.h" | 5 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" |
6 | 6 |
7 #include "chrome/browser/media_gallery/media_galleries_preferences.h" | 7 #include "chrome/browser/media_gallery/media_galleries_preferences.h" |
8 #include "chrome/browser/profiles/profile_dependency_manager.h" | 8 #include "chrome/browser/profiles/profile_dependency_manager.h" |
9 | 9 |
10 // static | 10 // static |
(...skipping 13 matching lines...) Expand all Loading... |
24 : ProfileKeyedServiceFactory("MediaGalleriesPreferences", | 24 : ProfileKeyedServiceFactory("MediaGalleriesPreferences", |
25 ProfileDependencyManager::GetInstance()) {} | 25 ProfileDependencyManager::GetInstance()) {} |
26 | 26 |
27 MediaGalleriesPreferencesFactory::~MediaGalleriesPreferencesFactory() {} | 27 MediaGalleriesPreferencesFactory::~MediaGalleriesPreferencesFactory() {} |
28 | 28 |
29 ProfileKeyedService* MediaGalleriesPreferencesFactory::BuildServiceInstanceFor( | 29 ProfileKeyedService* MediaGalleriesPreferencesFactory::BuildServiceInstanceFor( |
30 Profile* profile) const { | 30 Profile* profile) const { |
31 return new chrome::MediaGalleriesPreferences(profile); | 31 return new chrome::MediaGalleriesPreferences(profile); |
32 } | 32 } |
33 | 33 |
34 void MediaGalleriesPreferencesFactory::RegisterUserPrefs(PrefService* prefs) { | 34 void MediaGalleriesPreferencesFactory::RegisterUserPrefs( |
| 35 PrefServiceSyncable* prefs) { |
35 chrome::MediaGalleriesPreferences::RegisterUserPrefs(prefs); | 36 chrome::MediaGalleriesPreferences::RegisterUserPrefs(prefs); |
36 } | 37 } |
37 | 38 |
38 bool MediaGalleriesPreferencesFactory::ServiceRedirectedInIncognito() const { | 39 bool MediaGalleriesPreferencesFactory::ServiceRedirectedInIncognito() const { |
39 return true; | 40 return true; |
40 } | 41 } |
OLD | NEW |