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

Unified Diff: components/browser_watcher/exit_code_watcher_win.h

Issue 807513003: Switch ExitCodeWatcher to base::Process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | components/browser_watcher/exit_code_watcher_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/exit_code_watcher_win.h
diff --git a/components/browser_watcher/exit_code_watcher_win.h b/components/browser_watcher/exit_code_watcher_win.h
index 8fbb6141864da0fa019baa18f08821f4aed83bf1..2494916273cb396e80ef61fdc5e39af0eb0b759c 100644
--- a/components/browser_watcher/exit_code_watcher_win.h
+++ b/components/browser_watcher/exit_code_watcher_win.h
@@ -5,7 +5,7 @@
#define COMPONENTS_BROWSER_WATCHER_EXIT_CODE_WATCHER_WIN_H_
#include "base/macros.h"
-#include "base/process/process_handle.h"
+#include "base/process/process.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "base/win/scoped_handle.h"
@@ -40,7 +40,7 @@ class ExitCodeWatcher {
// This is a blocking call.
void WaitForExit();
- base::ProcessHandle process() const { return process_.Get(); }
+ const base::Process& process() const { return process_; }
private:
// Writes |exit_code| to registry, returns true on success.
@@ -50,8 +50,7 @@ class ExitCodeWatcher {
base::string16 registry_path_;
// Handle, PID, and creation time of the watched process.
- base::win::ScopedHandle process_;
- base::ProcessId process_pid_;
+ base::Process process_;
base::Time process_creation_time_;
DISALLOW_COPY_AND_ASSIGN(ExitCodeWatcher);
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | components/browser_watcher/exit_code_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698