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

Unified Diff: remoting/host/policy_hack/nat_policy_win.cc

Issue 10572005: Use SingleThreadTaskRunner instead of MessageLoopProxy in remoting/host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « remoting/host/policy_hack/nat_policy_mac.mm ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/policy_hack/nat_policy_win.cc
diff --git a/remoting/host/policy_hack/nat_policy_win.cc b/remoting/host/policy_hack/nat_policy_win.cc
index 1300b3bcbc2e8b71a7f815a5da18ed623e3da634..d09d39dd48b52590a2ab9a56ec900a90373f5aed 100644
--- a/remoting/host/policy_hack/nat_policy_win.cc
+++ b/remoting/host/policy_hack/nat_policy_win.cc
@@ -42,8 +42,8 @@ class NatPolicyWin :
public NatPolicy,
public base::win::ObjectWatcher::Delegate {
public:
- explicit NatPolicyWin(base::MessageLoopProxy* message_loop_proxy)
- : NatPolicy(message_loop_proxy),
+ explicit NatPolicyWin(scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : NatPolicy(task_runner),
user_policy_changed_event_(false, false),
machine_policy_changed_event_(false, false),
user_policy_watcher_failed_(false),
@@ -177,8 +177,9 @@ class NatPolicyWin :
bool machine_policy_watcher_failed_;
};
-NatPolicy* NatPolicy::Create(base::MessageLoopProxy* message_loop_proxy) {
- return new NatPolicyWin(message_loop_proxy);
+NatPolicy* NatPolicy::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
+ return new NatPolicyWin(task_runner);
}
} // namespace policy_hack
« no previous file with comments | « remoting/host/policy_hack/nat_policy_mac.mm ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698