Convert Pass()→std::move() on Windows
Also cleaned up a few stragglers from grepping the source: it's unclear
if these are just building with weird defines, don't build at all, only
build on obscure platforms, or something else… either way, Pass()
itself will be removed shortly after this.
BUG=557422
Review URL: https://codereview.chromium.org/1752233002
Cr-Commit-Position: refs/heads/master@{#378872}
diff --git a/components/browser_watcher/exit_code_watcher_win.cc b/components/browser_watcher/exit_code_watcher_win.cc
index 0e231847..76aacd0 100644
--- a/components/browser_watcher/exit_code_watcher_win.cc
+++ b/components/browser_watcher/exit_code_watcher_win.cc
@@ -4,6 +4,8 @@
#include "components/browser_watcher/exit_code_watcher_win.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/process/kill.h"
#include "base/strings/stringprintf.h"
@@ -50,7 +52,7 @@
}
// Success, take ownership of the process.
- process_ = process.Pass();
+ process_ = std::move(process);
process_creation_time_ = base::Time::FromFileTime(creation_time);
// Start by writing the value STILL_ACTIVE to registry, to allow detection