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

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

Issue 2705113005: Update AutoImport to import nothing by default (in absence of policy and master_prefs). (Closed)
Patch Set: Created 3 years, 10 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/chrome_pref_service_factory.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
index d2e0d02510603c09e7a298e5134bd467ab045a1d..bf7e5d0adc7fbe3b9acacb1223dbecbcc424ff46 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -513,9 +514,9 @@ void DisableDomainCheckForTesting() {
bool InitializePrefsFromMasterPrefs(
const base::FilePath& profile_path,
- const base::DictionaryValue& master_prefs) {
+ std::unique_ptr<base::DictionaryValue> master_prefs) {
return CreateProfilePrefStoreManager(profile_path)
- ->InitializePrefsFromMasterPrefs(master_prefs);
+ ->InitializePrefsFromMasterPrefs(std::move(master_prefs));
}
base::Time GetResetTime(Profile* profile) {

Powered by Google App Engine
This is Rietveld 408576698