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

Unified Diff: remoting/host/clipboard_mac.mm

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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/client_session.h ('k') | remoting/host/config_file_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/clipboard_mac.mm
diff --git a/remoting/host/clipboard_mac.mm b/remoting/host/clipboard_mac.mm
index 59c684b0b564b45b2fd66cff461237b1cc86197e..215793f2d9c6dd53c645fa91676ed890a83e6fa6 100644
--- a/remoting/host/clipboard_mac.mm
+++ b/remoting/host/clipboard_mac.mm
@@ -37,7 +37,7 @@ class ClipboardMac : public Clipboard {
void CheckClipboardForChanges();
scoped_ptr<protocol::ClipboardStub> client_clipboard_;
- scoped_ptr<base::RepeatingTimer<ClipboardMac> > clipboard_polling_timer_;
+ scoped_ptr<base::RepeatingTimer> clipboard_polling_timer_;
NSInteger current_change_count_;
DISALLOW_COPY_AND_ASSIGN(ClipboardMac);
@@ -56,7 +56,7 @@ void ClipboardMac::Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) {
// OS X doesn't provide a clipboard-changed notification. The only way to
// detect clipboard changes is by polling.
- clipboard_polling_timer_.reset(new base::RepeatingTimer<ClipboardMac>());
+ clipboard_polling_timer_.reset(new base::RepeatingTimer());
clipboard_polling_timer_->Start(FROM_HERE,
base::TimeDelta::FromMilliseconds(kClipboardPollingIntervalMs),
this, &ClipboardMac::CheckClipboardForChanges);
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/config_file_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698