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

Side by Side Diff: chrome/browser/ui/webui/help/help_utils_chromeos.cc

Issue 2913323003: Settings: Network: Merge Tether networks into Mobile subpage (Closed)
Patch Set: Rebase Created 3 years, 6 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/webui/help/help_utils_chromeos.h" 5 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 base::string16 GetConnectionTypeAsUTF16(const std::string& type) { 54 base::string16 GetConnectionTypeAsUTF16(const std::string& type) {
55 if (chromeos::NetworkTypePattern::Ethernet().MatchesType(type)) 55 if (chromeos::NetworkTypePattern::Ethernet().MatchesType(type))
56 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_ETHERNET); 56 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_ETHERNET);
57 if (type == shill::kTypeWifi) 57 if (type == shill::kTypeWifi)
58 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_WIFI); 58 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_WIFI);
59 if (type == shill::kTypeWimax) 59 if (type == shill::kTypeWimax)
60 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_WIMAX); 60 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_WIMAX);
61 if (type == shill::kTypeBluetooth) 61 if (type == shill::kTypeBluetooth)
62 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_BLUETOOTH); 62 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_BLUETOOTH);
63 if (type == shill::kTypeCellular) 63 if (type == shill::kTypeCellular ||
64 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_CELLULAR); 64 chromeos::NetworkTypePattern::Tether().MatchesType(type)) {
65 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_MOBILE_DATA);
66 }
65 if (type == shill::kTypeVPN) 67 if (type == shill::kTypeVPN)
66 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_VPN); 68 return l10n_util::GetStringUTF16(IDS_NETWORK_TYPE_VPN);
67 NOTREACHED(); 69 NOTREACHED();
68 return base::string16(); 70 return base::string16();
69 } 71 }
70 72
71 } // namespace help_utils_chromeos 73 } // namespace help_utils_chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698