| Index: base/prefs/pref_member.h
|
| diff --git a/base/prefs/pref_member.h b/base/prefs/pref_member.h
|
| index 17f5b447eb4a6f3a1f58985b6e7be0b7dc718c5c..d503e68ad775fa34da6004a4b1df552776724f16 100644
|
| --- a/base/prefs/pref_member.h
|
| +++ b/base/prefs/pref_member.h
|
| @@ -36,6 +36,7 @@
|
| #include "base/message_loop/message_loop_proxy.h"
|
| #include "base/prefs/base_prefs_export.h"
|
| #include "base/prefs/pref_observer.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/values.h"
|
|
|
| class PrefService;
|
| @@ -66,7 +67,7 @@ class BASE_PREFS_EXPORT PrefMemberBase : public PrefObserver {
|
| const base::Closure& callback) const;
|
|
|
| void MoveToThread(
|
| - const scoped_refptr<base::MessageLoopProxy>& message_loop);
|
| + const scoped_refptr<base::SingleThreadTaskRunner>& message_loop);
|
|
|
| // See PrefMember<> for description.
|
| bool IsManaged() const {
|
| @@ -92,7 +93,7 @@ class BASE_PREFS_EXPORT PrefMemberBase : public PrefObserver {
|
|
|
| bool IsOnCorrectThread() const;
|
|
|
| - scoped_refptr<base::MessageLoopProxy> thread_loop_;
|
| + scoped_refptr<base::SingleThreadTaskRunner> thread_loop_;
|
| mutable bool is_managed_;
|
| mutable bool is_user_modifiable_;
|
|
|
| @@ -112,7 +113,8 @@ class BASE_PREFS_EXPORT PrefMemberBase : public PrefObserver {
|
| // See PrefMember<> for description.
|
| void Destroy();
|
|
|
| - void MoveToThread(const scoped_refptr<base::MessageLoopProxy>& message_loop);
|
| + void MoveToThread(
|
| + const scoped_refptr<base::SingleThreadTaskRunner>& message_loop);
|
|
|
| // PrefObserver
|
| virtual void OnPreferenceChanged(PrefService* service,
|
| @@ -197,7 +199,8 @@ class PrefMember : public subtle::PrefMemberBase {
|
| // via PostTask.
|
| // This method should only be used from the thread the PrefMember is currently
|
| // on, which is the UI thread by default.
|
| - void MoveToThread(const scoped_refptr<base::MessageLoopProxy>& message_loop) {
|
| + void MoveToThread(
|
| + const scoped_refptr<base::SingleThreadTaskRunner>& message_loop) {
|
| subtle::PrefMemberBase::MoveToThread(message_loop);
|
| }
|
|
|
|
|