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

Unified Diff: remoting/host/policy_hack/nat_policy_mac.mm

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_linux.cc ('k') | remoting/host/policy_hack/nat_policy_win.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_mac.mm
diff --git a/remoting/host/policy_hack/nat_policy_mac.mm b/remoting/host/policy_hack/nat_policy_mac.mm
index 25cf6e70ca738cdf9ee456a0b9d7775f513ab072..d3d26215447009caa985a1ff8523681437b5c130 100644
--- a/remoting/host/policy_hack/nat_policy_mac.mm
+++ b/remoting/host/policy_hack/nat_policy_mac.mm
@@ -9,7 +9,7 @@
#include "base/compiler_specific.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
#include "base/sys_string_conversions.h"
#include "base/values.h"
@@ -22,8 +22,8 @@ namespace policy_hack {
// |kFallbackReloadDelayMinutes| which is sufficient for right now.
class NatPolicyMac : public NatPolicy {
public:
- explicit NatPolicyMac(base::MessageLoopProxy* message_loop_proxy)
- : NatPolicy(message_loop_proxy) {
+ explicit NatPolicyMac(scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : NatPolicy(task_runner) {
}
virtual ~NatPolicyMac() {
@@ -63,8 +63,9 @@ class NatPolicyMac : public NatPolicy {
}
};
-NatPolicy* NatPolicy::Create(base::MessageLoopProxy* message_loop_proxy) {
- return new NatPolicyMac(message_loop_proxy);
+NatPolicy* NatPolicy::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
+ return new NatPolicyMac(task_runner);
}
} // namespace policy_hack
« no previous file with comments | « remoting/host/policy_hack/nat_policy_linux.cc ('k') | remoting/host/policy_hack/nat_policy_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698