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

Unified Diff: components/browser_watcher/exit_code_watcher_win.h

Issue 1630923002: Remove PRODUCT_STRING_PATH from chrome_constants.h on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@c2_rm_PSP_profile_resetter
Patch Set: nit Created 4 years, 8 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/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 644b2a55bb885fb442d0e400131a55c96e2bf371..c5cfdbe51ab61aa32e0481196c66ac928a9dcad9 100644
--- a/components/browser_watcher/exit_code_watcher_win.h
+++ b/components/browser_watcher/exit_code_watcher_win.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/process/process.h"
#include "base/strings/string16.h"
+#include "base/strings/string_piece.h"
#include "base/time/time.h"
#include "base/win/scoped_handle.h"
@@ -17,7 +18,7 @@ namespace browser_watcher {
class ExitCodeWatcher {
public:
// Initialize the watcher with a registry path.
- explicit ExitCodeWatcher(const base::char16* registry_path);
+ explicit ExitCodeWatcher(base::StringPiece16 registry_path);
~ExitCodeWatcher();
// Initializes from arguments on |cmd_line|, returns true on success.
@@ -40,7 +41,7 @@ class ExitCodeWatcher {
bool WriteProcessExitCode(int exit_code);
// The registry path the exit codes are written to.
- base::string16 registry_path_;
+ const base::string16 registry_path_;
// Watched process and its creation time.
base::Process process_;

Powered by Google App Engine
This is Rietveld 408576698