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

Unified Diff: ash/shell.cc

Issue 2791903003: Pref service: have Mash and Chrome connect to the right pref stores (Closed)
Patch Set: Update PrefServiceFactoryTest Created 3 years, 9 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: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index a0596e19a4fbfa7d47565d71157522ae5b830056..9d875b19bf0389e12d9f735ae1dfcfb9d1ab44e3 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -799,7 +799,7 @@ void Shell::Init(const ShellInitParams& init_params) {
if (wm_shell_->IsRunningInMash() && shell_delegate_->GetShellConnector()) {
prefs::ConnectToPrefService(
shell_delegate_->GetShellConnector(),
- make_scoped_refptr(new PrefRegistrySimple()),
+ make_scoped_refptr(new PrefRegistrySimple()), {},
Bernhard Bauer 2017/04/03 10:37:39 Nit: Add a comment /* already_connected_types = */
tibell 2017/04/04 04:05:59 I instead changed it to spell out the type, since
Bernhard Bauer 2017/04/05 10:04:32 :-/ An alternative might be to add a helper method
tibell 2017/04/06 01:05:52 I'm going to stick with what I have. This code is
base::Bind(&Shell::OnPrefServiceInitialized, base::Unretained(this)),
prefs::mojom::kForwarderServiceName);
}
« no previous file with comments | « no previous file | chrome/browser/prefs/active_profile_pref_service.h » ('j') | chrome/browser/prefs/browser_prefs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698