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

Unified Diff: third_party/WebKit/Source/platform/TimerTest.cpp

Issue 2870543002: Removed PassRefPtr to RefPtr copies from unit tests. (Closed)
Patch Set: Created 3 years, 7 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/platform/TimerTest.cpp
diff --git a/third_party/WebKit/Source/platform/TimerTest.cpp b/third_party/WebKit/Source/platform/TimerTest.cpp
index 9cbc0d27adf9520fffb29acebc258b5487b3e13e..ee46d22380954ae451b7703e3b9df7bf032f8c68 100644
--- a/third_party/WebKit/Source/platform/TimerTest.cpp
+++ b/third_party/WebKit/Source/platform/TimerTest.cpp
@@ -97,7 +97,7 @@ class OnHeapTimerOwner final
};
explicit OnHeapTimerOwner(PassRefPtr<Record> record)
- : timer_(this, &OnHeapTimerOwner::Fired), record_(record) {}
+ : timer_(this, &OnHeapTimerOwner::Fired), record_(std::move(record)) {}
~OnHeapTimerOwner() { record_->SetOwnerIsDestructed(); }
void StartOneShot(double interval, const WebTraceLocation& caller) {

Powered by Google App Engine
This is Rietveld 408576698