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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 1917193006: WTF: Make PassOwnPtr<T> move-only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 8 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
Index: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
index f953c5faf3347dcaf49d129cc0c57a6f6146f66f..0ef90d1f6d2bb7403fd3e7d385346f0ef67c87fa 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -137,7 +137,7 @@ int ThreadDebugger::startRepeatingTimer(double interval, PassOwnPtr<V8DebuggerCl
int id = ++m_lastTimerId;
OwnPtr<Timer<ThreadDebugger>> timer = adoptPtr(new Timer<ThreadDebugger>(this, &ThreadDebugger::onTimer));
Timer<ThreadDebugger>* timerPtr = timer.get();
- m_timerCallbacks.set(timerPtr, callback);
+ m_timerCallbacks.set(timerPtr, std::move(callback));
m_timers.set(id, timer.release());
timerPtr->startRepeating(interval, BLINK_FROM_HERE);
return id;

Powered by Google App Engine
This is Rietveld 408576698