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

Unified Diff: chrome/browser/browser_shutdown.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. 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/browser/browser_shutdown.cc
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc
index 88d5ce1ba20295bbb5520ad3d13e88a94fed3bc9..b5bc5b86c203bcda81ca586e79bc02d2f0b1a27e 100644
--- a/chrome/browser/browser_shutdown.cc
+++ b/chrome/browser/browser_shutdown.cc
@@ -26,6 +26,7 @@
#include "chrome/browser/jankometer.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/metrics/metrics_service.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/service/service_process_control.h"
@@ -77,7 +78,7 @@ int shutdown_num_processes_slow_;
const char kShutdownMsFile[] = "chrome_shutdown_ms.txt";
-void RegisterPrefs(PrefServiceSimple* local_state) {
+void RegisterPrefs(PrefRegistrySimple* local_state) {
Mattias Nissler (ping if slow) 2013/01/31 13:06:25 I could nit here (and elsewhere) that the paramete
Jói 2013/01/31 13:43:42 I was thinking I might leave it, but nicer to do i
local_state->RegisterIntegerPref(prefs::kShutdownType, NOT_VALID);
local_state->RegisterIntegerPref(prefs::kShutdownNumProcesses, 0);
local_state->RegisterIntegerPref(prefs::kShutdownNumProcessesSlow, 0);

Powered by Google App Engine
This is Rietveld 408576698