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

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

Issue 1257093002: Remove the migration code from content_settings::PrefProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the tests. Created 5 years, 5 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_model_associator.cc
diff --git a/chrome/browser/prefs/pref_model_associator.cc b/chrome/browser/prefs/pref_model_associator.cc
index 5ddbf1fbb937b8b7a3451b0e7255c7e144ec9b23..4a3bd1f5ce5e4fec86871544ec8a67d63d901274 100644
--- a/chrome/browser/prefs/pref_model_associator.cc
+++ b/chrome/browser/prefs/pref_model_associator.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/prefs/pref_service_syncable.h"
#include "chrome/common/pref_names.h"
+#include "components/content_settings/core/browser/content_settings_pref_provider.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_error_factory.h"
#include "sync/protocol/preference_specifics.pb.h"
@@ -323,7 +324,7 @@ scoped_ptr<base::Value> PrefModelAssociator::MergePreference(
MergeListValues(local_value, server_value)).Pass();
}
- if (name == prefs::kContentSettingsPatternPairs) {
+ if (content_settings::PrefProvider::IsContentSettingsExceptionsPref(name)) {
return scoped_ptr<base::Value>(
MergeDictionaryValues(local_value, server_value)).Pass();
}

Powered by Google App Engine
This is Rietveld 408576698