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

Unified Diff: base/prefs/pref_member.cc

Issue 491753003: Domain Reliability: Don't upload when metrics reporting is off. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a last couple of nits Created 6 years, 4 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
« no previous file with comments | « base/prefs/pref_member.h ('k') | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_member.cc
diff --git a/base/prefs/pref_member.cc b/base/prefs/pref_member.cc
index eb708394979964615eec8db0c9222ae0de220632..4fa616f4fb612bb8bc3c6338d39a7f60a3033700 100644
--- a/base/prefs/pref_member.cc
+++ b/base/prefs/pref_member.cc
@@ -7,10 +7,12 @@
#include "base/callback.h"
#include "base/callback_helpers.h"
#include "base/location.h"
+#include "base/message_loop/message_loop_proxy.h"
#include "base/prefs/pref_service.h"
#include "base/value_conversions.h"
using base::MessageLoopProxy;
+using base::SingleThreadTaskRunner;
namespace subtle {
@@ -53,12 +55,12 @@ void PrefMemberBase::Destroy() {
}
void PrefMemberBase::MoveToThread(
- const scoped_refptr<MessageLoopProxy>& message_loop) {
+ const scoped_refptr<SingleThreadTaskRunner>& task_runner) {
VerifyValuePrefName();
// Load the value from preferences if it hasn't been loaded so far.
if (!internal())
UpdateValueFromPref(base::Closure());
- internal()->MoveToThread(message_loop);
+ internal()->MoveToThread(task_runner);
}
void PrefMemberBase::OnPreferenceChanged(PrefService* service,
@@ -127,9 +129,9 @@ void PrefMemberBase::Internal::UpdateValue(
}
void PrefMemberBase::Internal::MoveToThread(
- const scoped_refptr<MessageLoopProxy>& message_loop) {
+ const scoped_refptr<SingleThreadTaskRunner>& task_runner) {
CheckOnCorrectThread();
- thread_loop_ = message_loop;
+ thread_loop_ = task_runner;
}
bool PrefMemberVectorStringUpdate(const base::Value& value,
« no previous file with comments | « base/prefs/pref_member.h ('k') | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698