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

Unified Diff: chrome/browser/web_resource/plugins_resource_service.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 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/web_resource/plugins_resource_service.cc
diff --git a/chrome/browser/web_resource/plugins_resource_service.cc b/chrome/browser/web_resource/plugins_resource_service.cc
index 77777d8bae3887d9cd0da818e1cde97a5c7a2865..e6df0fd8dbd0419a39cd9d591480ef6beb13a02c 100644
--- a/chrome/browser/web_resource/plugins_resource_service.cc
+++ b/chrome/browser/web_resource/plugins_resource_service.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "chrome/browser/plugins/plugin_finder.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
@@ -65,10 +66,10 @@ PluginsResourceService::~PluginsResourceService() {
}
// static
-void PluginsResourceService::RegisterPrefs(PrefServiceSimple* local_state) {
- local_state->RegisterDictionaryPref(
- prefs::kPluginsMetadata, new base::DictionaryValue());
- local_state->RegisterStringPref(prefs::kPluginsResourceCacheUpdate, "0");
+void PluginsResourceService::RegisterPrefs(PrefRegistrySimple* registry) {
+ registry->RegisterDictionaryPref(prefs::kPluginsMetadata,
+ new base::DictionaryValue());
+ registry->RegisterStringPref(prefs::kPluginsResourceCacheUpdate, "0");
}
void PluginsResourceService::Unpack(const DictionaryValue& parsed_json) {
« no previous file with comments | « chrome/browser/web_resource/plugins_resource_service.h ('k') | chrome/browser/web_resource/promo_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698