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

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

Issue 2286743004: Sends switches to the Software Reporter to enable matching data collection. (Closed)
Patch Set: Missing comment 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/safe_browsing/srt_client_info_win.h"
6
7 #include "chrome/common/channel_info.h"
8 #include "components/version_info/version_info.h"
9
10 namespace safe_browsing {
11
12 const char kChromeVersionSwitch[] = "chrome-version";
13 const char kChromeChannelSwitch[] = "chrome-channel";
14
15 int ChannelAsInt() {
16 switch (chrome::GetChannel()) {
17 case version_info::Channel::UNKNOWN:
18 return 0;
19 case version_info::Channel::CANARY:
20 return 1;
21 case version_info::Channel::DEV:
22 return 2;
23 case version_info::Channel::BETA:
24 return 3;
25 case version_info::Channel::STABLE:
26 return 4;
27 default:
28 return 0;
29 }
30 }
31
32 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698