OLD | NEW |
---|---|
(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 | |
OLD | NEW |