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

Unified Diff: chrome/browser/safe_browsing/srt_global_error_win.cc

Issue 2429893002: Add Chrome's executable path when launching the CCT. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/srt_global_error_win.cc
diff --git a/chrome/browser/safe_browsing/srt_global_error_win.cc b/chrome/browser/safe_browsing/srt_global_error_win.cc
index 79a851a7b63c17a6940ed8f7481cd2ff8cbadcf8..4845c9b476e4a66b4af4d15065bc1a357ae8b64d 100644
--- a/chrome/browser/safe_browsing/srt_global_error_win.cc
+++ b/chrome/browser/safe_browsing/srt_global_error_win.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/safe_browsing/srt_global_error_win.h"
+#include "base/base_paths.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
@@ -52,6 +53,7 @@ const base::FilePath::CharType kExecutableExtension[] = L"exe";
// A switch to add to the command line when executing the SRT.
const char kChromePromptSwitch[] = "chrome-prompt";
+const char kChromeExePathSwitch[] = "chrome-exe-path";
const char kChromeSystemInstallSwitch[] = "chrome-system-install";
const char kUmaUserSwitch[] = "uma-user";
@@ -76,6 +78,7 @@ void MaybeExecuteSRTFromBlockingPool(
base::FilePath chrome_exe_path;
PathService::Get(base::FILE_EXE, &chrome_exe_path);
+ srt_command_line.AppendSwitchPath(kChromeExePathSwitch, chrome_exe_path);
if (!InstallUtil::IsPerUserInstall(chrome_exe_path))
srt_command_line.AppendSwitch(kChromeSystemInstallSwitch);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698