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

Side by Side Diff: content/renderer/net_info_helper.cc

Issue 1310343010: Update browser code to use new enum names for WebConnectionType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/renderer/net_info_helper.h" 5 #include "content/renderer/net_info_helper.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 blink::WebConnectionType 9 blink::WebConnectionType
10 NetConnectionTypeToWebConnectionType( 10 NetConnectionTypeToWebConnectionType(
11 net::NetworkChangeNotifier::ConnectionType net_type) { 11 net::NetworkChangeNotifier::ConnectionType net_type) {
12 switch (net_type) { 12 switch (net_type) {
13 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN: 13 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN:
14 return blink::ConnectionTypeUnknown; 14 return blink::WebConnectionTypeUnknown;
15 case net::NetworkChangeNotifier::CONNECTION_ETHERNET: 15 case net::NetworkChangeNotifier::CONNECTION_ETHERNET:
16 return blink::ConnectionTypeEthernet; 16 return blink::WebConnectionTypeEthernet;
17 case net::NetworkChangeNotifier::CONNECTION_WIFI: 17 case net::NetworkChangeNotifier::CONNECTION_WIFI:
18 return blink::ConnectionTypeWifi; 18 return blink::WebConnectionTypeWifi;
19 case net::NetworkChangeNotifier::CONNECTION_NONE: 19 case net::NetworkChangeNotifier::CONNECTION_NONE:
20 return blink::ConnectionTypeNone; 20 return blink::WebConnectionTypeNone;
21 case net::NetworkChangeNotifier::CONNECTION_2G: 21 case net::NetworkChangeNotifier::CONNECTION_2G:
22 case net::NetworkChangeNotifier::CONNECTION_3G: 22 case net::NetworkChangeNotifier::CONNECTION_3G:
23 case net::NetworkChangeNotifier::CONNECTION_4G: 23 case net::NetworkChangeNotifier::CONNECTION_4G:
24 return blink::ConnectionTypeCellular; 24 return blink::WebConnectionTypeCellular;
25 case net::NetworkChangeNotifier::CONNECTION_BLUETOOTH: 25 case net::NetworkChangeNotifier::CONNECTION_BLUETOOTH:
26 return blink::ConnectionTypeBluetooth; 26 return blink::WebConnectionTypeBluetooth;
27 } 27 }
28 28
29 NOTREACHED(); 29 NOTREACHED();
30 return blink::ConnectionTypeNone; 30 return blink::WebConnectionTypeNone;
31 } 31 }
32 32
33 } // namespace content 33 } // namespace content
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