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

Side by Side Diff: chrome/browser/prefs/pref_service_syncable_util.h

Issue 1326353002: Remove dependency of PrefSyncableService on Profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_model_associator
Patch Set: Fixing ChromeOS and Linux compilation Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_UTIL_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_UTIL_H_
7
8 class PrefServiceSyncable;
9 class Profile;
10
11 // PrefServiceSyncable is a PrefService with added integration for
12 // sync, and knowledge of how to create an incognito
13 // PrefService. For code that does not need to know about the sync
14 // integration, you should use only the plain PrefService type.
15 //
16 // For this reason, Profile does not expose an accessor for the
17 // PrefServiceSyncable type. Instead, you can use the utilities
18 // below to retrieve the PrefServiceSyncable (or its incognito
19 // version) from a Profile.
20 PrefServiceSyncable* PrefServiceSyncableFromProfile(Profile* profile);
21 PrefServiceSyncable* PrefServiceSyncableIncognitoFromProfile(Profile* profile);
22
23 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable.cc ('k') | chrome/browser/prefs/pref_service_syncable_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698