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

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

Issue 2856083002: Pref service: support for incognito prefs (Closed)
Patch Set: Fix compilation on Windows 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/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(
Sam McNally 2017/05/10 01:22:16 Add a helper for getting the prefs::mojom::PrefSto
+ 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) {

Powered by Google App Engine
This is Rietveld 408576698