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

Unified Diff: chrome_frame/test/net/fake_external_tab.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix build and test issues. Created 7 years, 11 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_frame/test/net/fake_external_tab.cc
diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc
index 24007f2191c1a9900d9f6d2f2b3881963b3decae..41ffb2d24f7a099dc4f93ef18281e60f0b874dd2 100644
--- a/chrome_frame/test/net/fake_external_tab.cc
+++ b/chrome_frame/test/net/fake_external_tab.cc
@@ -33,6 +33,7 @@
#include "chrome/browser/automation/automation_provider_list.h"
#include "chrome/browser/chrome_content_browser_client.h"
#include "chrome/browser/prefs/browser_prefs.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/proxy_config_dictionary.h"
#include "chrome/browser/process_singleton.h"
@@ -516,8 +517,10 @@ void FakeExternalTab::Initialize() {
content::RenderProcessHost::SetRunRendererInProcess(true);
- browser_process_->local_state()->RegisterBooleanPref(
- prefs::kMetricsReportingEnabled, false);
+ // TODO(joi): Registration should be done up front via browser_prefs.cc
+ scoped_refptr<PrefRegistrySimple> registry = static_cast<PrefRegistrySimple*>(
+ browser_process_->local_state()->DeprecatedGetPrefRegistry());
+ registry->RegisterBooleanPref(prefs::kMetricsReportingEnabled, false);
}
void FakeExternalTab::InitializePostThreadsCreated() {

Powered by Google App Engine
This is Rietveld 408576698