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

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

Issue 2286743004: Sends switches to the Software Reporter to enable matching data collection. (Closed)
Patch Set: Always clean state on test setup Created 4 years, 3 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 | « chrome/browser/safe_browsing/srt_fetcher_win.cc ('k') | components/component_updater/pref_names.h » ('j') | 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 376230e1645743da1a9056add0d9541fb24145ad..8daa4139b2aba11808af7328008d186f0fd28500 100644
--- a/chrome/browser/safe_browsing/srt_global_error_win.cc
+++ b/chrome/browser/safe_browsing/srt_global_error_win.cc
@@ -18,6 +18,7 @@
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
+#include "chrome/browser/safe_browsing/srt_client_info_win.h"
#include "chrome/browser/safe_browsing/srt_field_trial_win.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
@@ -51,32 +52,10 @@ 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 kChromeVersionSwitch[] = "chrome-version";
const char kChromeSystemInstallSwitch[] = "chrome-system-install";
-const char kChromeChannelSwitch[] = "chrome-channel";
const char kEnableCrashReporting[] = "enable-crash-reporting";
const char kUmaUserSwitch[] = "uma-user";
-// Encodes Chrome's channel as an integer to be passed to the SRT on the command
-// line. The SRT binary expects to recieve Chrome's channel encoded as:
-// 0: unknown; 1: canary; 2: dev; 3: beta; 4: stable.
-int ChannelAsInt() {
- switch (chrome::GetChannel()) {
- case version_info::Channel::UNKNOWN:
- return 0;
- case version_info::Channel::CANARY:
- return 1;
- case version_info::Channel::DEV:
- return 2;
- case version_info::Channel::BETA:
- return 3;
- case version_info::Channel::STABLE:
- return 4;
- default:
- return 0;
- }
-}
-
void MaybeExecuteSRTFromBlockingPool(
const base::FilePath& downloaded_path,
bool metrics_enabled,
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_win.cc ('k') | components/component_updater/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698