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

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: 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 // static
alito 2016/08/26 23:18:08 nit: remove comment?
ftirelo 2016/08/29 00:10:36 Done.
16 int ChannelAsInt() {
17 switch (chrome::GetChannel()) {
18 case version_info::Channel::UNKNOWN:
19 return 0;
20 case version_info::Channel::CANARY:
21 return 1;
22 case version_info::Channel::DEV:
23 return 2;
24 case version_info::Channel::BETA:
25 return 3;
26 case version_info::Channel::STABLE:
27 return 4;
28 default:
grt (UTC plus 2) 2016/08/28 19:44:22 remove this so that you get a compiler error in ca
ftirelo 2016/08/29 00:10:36 If I simply remove this, I get this error: d:\work
grt (UTC plus 2) 2016/08/29 06:56:14 Do this: switch (chrome::GetChannel() { cas
ftirelo 2016/08/29 16:30:11 Done.
29 return 0;
30 }
31 }
32
33 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698