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

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

Issue 2856083002: Pref service: support for incognito prefs (Closed)
Patch Set: Rebase Created 3 years, 7 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/active_profile_pref_service.cc
diff --git a/chrome/browser/prefs/active_profile_pref_service.cc b/chrome/browser/prefs/active_profile_pref_service.cc
index b8546a913c593003612678eebd756a9f49e79f62..4238ffcf4e845d2e11b783b6603f462b949b4fc0 100644
--- a/chrome/browser/prefs/active_profile_pref_service.cc
+++ b/chrome/browser/prefs/active_profile_pref_service.cc
@@ -29,6 +29,16 @@ void ActiveProfilePrefService::Connect(
callback);
}
+void ActiveProfilePrefService::ConnectToUserPrefStore(
+ prefs::mojom::PrefStoreRequest request) {
+ auto* connector = content::BrowserContext::GetConnectorFor(
+ ProfileManager::GetActiveUserProfile()->GetOriginalProfile());
+ connector->BindInterface(prefs::mojom::kServiceName, &connector_ptr_);
+ connector_ptr_.set_connection_error_handler(base::Bind(
+ &ActiveProfilePrefService::OnConnectError, base::Unretained(this)));
+ connector_ptr_->ConnectToUserPrefStore(std::move(request));
+}
+
void ActiveProfilePrefService::Create(
const service_manager::BindSourceInfo& source_info,
prefs::mojom::PrefStoreConnectorRequest request) {
« no previous file with comments | « chrome/browser/prefs/active_profile_pref_service.h ('k') | chrome/browser/prefs/profile_pref_store_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698