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

Side by Side Diff: chrome/browser/safe_browsing/srt_field_trial_win.cc

Issue 1908613002: Explicitly use HTTPS to download the CCT binary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/srt_field_trial_win.h" 5 #include "chrome/browser/safe_browsing/srt_field_trial_win.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "components/variations/variations_associated_data.h" 10 #include "components/variations/variations_associated_data.h"
11 11
12 namespace { 12 namespace {
13 13
14 // Field trial strings. 14 // Field trial strings.
15 const char kSRTPromptTrial[] = "SRTPromptFieldTrial"; 15 const char kSRTPromptTrial[] = "SRTPromptFieldTrial";
16 const char kSRTCanaryGroup[] = "SRTCanary"; 16 const char kSRTCanaryGroup[] = "SRTCanary";
17 const char kSRTPromptOffGroup[] = "Off"; 17 const char kSRTPromptOffGroup[] = "Off";
18 const char kSRTPromptSeedParam[] = "Seed"; 18 const char kSRTPromptSeedParam[] = "Seed";
19 19
20 const char kSRTElevationTrial[] = "SRTElevation"; 20 const char kSRTElevationTrial[] = "SRTElevation";
21 const char kSRTElevationAsNeededGroup[] = "AsNeeded"; 21 const char kSRTElevationAsNeededGroup[] = "AsNeeded";
22 22
23 const char kSRTReporterTrial[] = "srt_reporter"; 23 const char kSRTReporterTrial[] = "srt_reporter";
24 const char kSRTReporterOffGroup[] = "Off"; 24 const char kSRTReporterOffGroup[] = "Off";
25 25
26 // The download links of the Software Removal Tool. 26 // The download links of the Software Removal Tool.
27 const char kMainSRTDownloadURL[] = 27 const char kMainSRTDownloadURL[] =
28 "http://dl.google.com/dl" 28 "https://dl.google.com/dl"
29 "/softwareremovaltool/win/chrome_cleanup_tool.exe?chrome-prompt=1"; 29 "/softwareremovaltool/win/chrome_cleanup_tool.exe?chrome-prompt=1";
30 const char kCanarySRTDownloadURL[] = 30 const char kCanarySRTDownloadURL[] =
31 "http://dl.google.com/dl" 31 "https://dl.google.com/dl"
32 "/softwareremovaltool/win/c/chrome_cleanup_tool.exe?chrome-prompt=1"; 32 "/softwareremovaltool/win/c/chrome_cleanup_tool.exe?chrome-prompt=1";
33 33
34 } // namespace 34 } // namespace
35 35
36 namespace safe_browsing { 36 namespace safe_browsing {
37 37
38 bool IsInSRTPromptFieldTrialGroups() { 38 bool IsInSRTPromptFieldTrialGroups() {
39 return !base::StartsWith(base::FieldTrialList::FindFullName(kSRTPromptTrial), 39 return !base::StartsWith(base::FieldTrialList::FindFullName(kSRTPromptTrial),
40 kSRTPromptOffGroup, base::CompareCase::SENSITIVE); 40 kSRTPromptOffGroup, base::CompareCase::SENSITIVE);
41 } 41 }
(...skipping 26 matching lines...) Expand all
68 void RecordSRTPromptHistogram(SRTPromptHistogramValue value) { 68 void RecordSRTPromptHistogram(SRTPromptHistogramValue value) {
69 UMA_HISTOGRAM_ENUMERATION("SoftwareReporter.PromptUsage", value, 69 UMA_HISTOGRAM_ENUMERATION("SoftwareReporter.PromptUsage", value,
70 SRT_PROMPT_MAX); 70 SRT_PROMPT_MAX);
71 } 71 }
72 72
73 void RecordReporterStepHistogram(SwReporterUmaValue value) { 73 void RecordReporterStepHistogram(SwReporterUmaValue value) {
74 UMA_HISTOGRAM_ENUMERATION("SoftwareReporter.Step", value, SW_REPORTER_MAX); 74 UMA_HISTOGRAM_ENUMERATION("SoftwareReporter.Step", value, SW_REPORTER_MAX);
75 } 75 }
76 76
77 } // namespace safe_browsing 77 } // namespace safe_browsing
OLDNEW
« 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