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

Unified Diff: chrome/test/chromedriver/chrome/heap_snapshot_taker.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/test/chromedriver/chrome/heap_snapshot_taker.cc
diff --git a/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc b/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc
index f17e54e9504e08f6830dd457681ab17f0a78f7df..5e5c2255e887e781a920a32c87f1b4f2777f048e 100644
--- a/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc
+++ b/chrome/test/chromedriver/chrome/heap_snapshot_taker.cc
@@ -5,6 +5,7 @@
#include "chrome/test/chromedriver/chrome/heap_snapshot_taker.h"
#include <stddef.h>
+#include <utility>
#include "base/json/json_reader.h"
#include "base/logging.h"
@@ -31,7 +32,7 @@ Status HeapSnapshotTaker::TakeSnapshot(scoped_ptr<base::Value>* snapshot) {
if (!value) {
status3 = Status(kUnknownError, "heap snapshot not in JSON format");
} else {
- *snapshot = value.Pass();
+ *snapshot = std::move(value);
}
}
snapshot_.clear();

Powered by Google App Engine
This is Rietveld 408576698