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

Unified Diff: chrome/browser/prefs/pref_service_syncable_util.cc

Issue 2860683002: WIP: Pref service: use the incognito support from Chrome
Patch Set: Rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/pref_service_syncable_util.cc
diff --git a/chrome/browser/prefs/pref_service_syncable_util.cc b/chrome/browser/prefs/pref_service_syncable_util.cc
index 68c2f27a9eb3d47422d0aac6030f9a95f8955bf5..6df92a1138b99a2e7c8cf3006e1fabeb36957160 100644
--- a/chrome/browser/prefs/pref_service_syncable_util.cc
+++ b/chrome/browser/prefs/pref_service_syncable_util.cc
@@ -21,26 +21,3 @@ sync_preferences::PrefServiceSyncable* PrefServiceSyncableFromProfile(
return static_cast<sync_preferences::PrefServiceSyncable*>(
profile->GetPrefs());
}
-
-sync_preferences::PrefServiceSyncable* PrefServiceSyncableIncognitoFromProfile(
- Profile* profile) {
- return static_cast<sync_preferences::PrefServiceSyncable*>(
- profile->GetOffTheRecordPrefs());
-}
-
-sync_preferences::PrefServiceSyncable* CreateIncognitoPrefServiceSyncable(
- sync_preferences::PrefServiceSyncable* pref_service,
- PrefStore* incognito_extension_pref_store) {
- // List of keys that cannot be changed in the user prefs file by the incognito
- // profile. All preferences that store information about the browsing history
- // or behavior of the user should have this property.
- std::vector<const char*> overlay_pref_names;
- overlay_pref_names.push_back(prefs::kBrowserWindowPlacement);
- overlay_pref_names.push_back(prefs::kMediaRouterTabMirroringSources);
- overlay_pref_names.push_back(prefs::kSaveFileDefaultDirectory);
-#if defined(OS_ANDROID)
- overlay_pref_names.push_back(proxy_config::prefs::kProxy);
-#endif
- return pref_service->CreateIncognitoPrefService(
- incognito_extension_pref_store, overlay_pref_names);
-}
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable_util.h ('k') | chrome/browser/profiles/off_the_record_profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698