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

Unified Diff: base/process/process_metrics.cc

Issue 1479473002: base: Use std::move() instead of Pass() for real movable types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: base/process/process_metrics.cc
diff --git a/base/process/process_metrics.cc b/base/process/process_metrics.cc
index 6d99383cdf69d17c298c21f9dc79f51585c2cd29..0ed884f3f99ff662442ca002fa503a6409a31b84 100644
--- a/base/process/process_metrics.cc
+++ b/base/process/process_metrics.cc
@@ -40,7 +40,7 @@ scoped_ptr<Value> SystemMetrics::ToValue() const {
res->Set("swapinfo", swap_info_.ToValue());
#endif
- return res.Pass();
+ return std::move(res);
Lei Zhang 2015/11/25 00:55:04 #include <utility> ? You've been mostly consistent
danakj 2015/11/25 01:01:45 Yep! Thanks
}
ProcessMetrics* ProcessMetrics::CreateCurrentProcessMetrics() {

Powered by Google App Engine
This is Rietveld 408576698