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

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

Issue 1112403005: [chrome/browser] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 years, 8 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/leveldb_pref_store.cc
diff --git a/chrome/browser/prefs/leveldb_pref_store.cc b/chrome/browser/prefs/leveldb_pref_store.cc
index 2effc51d95e56fcc35625292349385b092e62400..d79f1f10d6218269286bdf6dbde80ef474472e75 100644
--- a/chrome/browser/prefs/leveldb_pref_store.cc
+++ b/chrome/browser/prefs/leveldb_pref_store.cc
@@ -12,6 +12,7 @@
#include "base/metrics/sparse_histogram.h"
#include "base/sequenced_task_runner.h"
#include "base/task_runner_util.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "base/values.h"
@@ -190,11 +191,12 @@ LevelDBPrefStore::LevelDBPrefStore(
base::SequencedTaskRunner* sequenced_task_runner)
: path_(filename),
sequenced_task_runner_(sequenced_task_runner),
- original_task_runner_(base::MessageLoopProxy::current()),
+ original_task_runner_(base::ThreadTaskRunnerHandle::Get()),
read_only_(false),
initialized_(false),
read_error_(PREF_READ_ERROR_NONE),
- weak_ptr_factory_(this) {}
+ weak_ptr_factory_(this) {
+}
LevelDBPrefStore::~LevelDBPrefStore() {
CommitPendingWrite();

Powered by Google App Engine
This is Rietveld 408576698