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

Unified Diff: components/browser_watcher/window_hang_monitor_win.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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: components/browser_watcher/window_hang_monitor_win.cc
diff --git a/components/browser_watcher/window_hang_monitor_win.cc b/components/browser_watcher/window_hang_monitor_win.cc
index da0eff1d8e44f910e654b54f0f4cfa0f0ae38536..e3966f8c5000333b9079415e4922fe6ca4078772 100644
--- a/components/browser_watcher/window_hang_monitor_win.cc
+++ b/components/browser_watcher/window_hang_monitor_win.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "components/browser_watcher/window_hang_monitor_win.h"
+#include <utility>
+
#include "base/callback.h"
#include "base/files/file_util.h"
#include "base/location.h"
@@ -72,7 +74,7 @@ WindowHangMonitor::~WindowHangMonitor() {
}
void WindowHangMonitor::Initialize(base::Process process) {
- window_process_ = process.Pass();
+ window_process_ = std::move(process);
timer_.SetTaskRunner(base::MessageLoop::current()->task_runner());
ScheduleFindWindow();
« no previous file with comments | « components/browser_watcher/exit_code_watcher_win_unittest.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698