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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 2b33a94337a8886c4ff5f15ef947fec631bea4b2..9e251db0948d86da447839660085edc72f5c6302 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -16,6 +16,7 @@
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/synchronization/waitable_event.h"
+#include "base/threading/sequenced_worker_pool.h"
akalin 2012/10/19 02:00:51 not needed anymore
zel 2012/10/19 18:45:07 Done.
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/automation/automation_provider_list.h"
@@ -131,7 +132,9 @@ using content::ChildProcessSecurityPolicy;
using content::PluginService;
using content::ResourceDispatcherHost;
-BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line)
+BrowserProcessImpl::BrowserProcessImpl(
+ base::SequencedTaskRunner* local_state_task_runner,
+ const CommandLine& command_line)
: created_metrics_service_(false),
created_watchdog_thread_(false),
created_browser_policy_connector_(false),
@@ -145,7 +148,8 @@ BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line)
checked_for_new_frames_(false),
using_new_frames_(false),
render_widget_snapshot_taker_(new RenderWidgetSnapshotTaker),
- download_status_updater_(new DownloadStatusUpdater) {
+ download_status_updater_(new DownloadStatusUpdater),
+ local_state_task_runner_(local_state_task_runner) {
g_browser_process = this;
#if defined(ENABLE_PRINTING)
@@ -715,7 +719,7 @@ void BrowserProcessImpl::CreateLocalState() {
PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path);
local_state_.reset(
PrefService::CreatePrefService(local_state_path, policy_service(), NULL,
- false));
+ false, local_state_task_runner_));
// Initialize the prefs of the local state.
chrome::RegisterLocalState(local_state_.get());

Powered by Google App Engine
This is Rietveld 408576698