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

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

Issue 2421683002: 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 3b134fd47995eb49afe900abbdf0f13e82eb5945..a5f6b2df989c215f0a5e756b5301ceebec653a84 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";
// Switches 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";
@@ -88,6 +90,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