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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 563553004: Some additional network settings cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_9b
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/chromeos/onc_data.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index abfb4875ccbe6ec0a70bbfd27eeda11d358bb66f..23ee651dce2ab45cc62c8cbd8b46325496aeb1e7 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -112,7 +112,6 @@ const char kShowMorePlanInfoMessage[] = "showMorePlanInfo";
const char kTagActivate[] = "activate";
const char kTagAddConnection[] = "add";
const char kTagCarrierSelectFlag[] = "showCarrierSelect";
-const char kTagCarrierUrl[] = "carrierUrl";
const char kTagCellularAvailable[] = "cellularAvailable";
const char kTagCellularEnabled[] = "cellularEnabled";
const char kTagCellularSupportsScan[] = "cellularSupportsScan";
@@ -126,7 +125,6 @@ const char kTagOptions[] = "options";
const char kTagRememberedList[] = "rememberedList";
const char kTagCarriers[] = "carriers";
const char kTagCurrentCarrierIndex[] = "currentCarrierIndex";
-const char kTagShowActivateButton[] = "showActivateButton";
const char kTagShowViewAccountButton[] = "showViewAccountButton";
const char kTagTrue[] = "true";
const char kTagVpnList[] = "vpnList";
@@ -235,13 +233,6 @@ void PopulateCellularDetails(const NetworkState* cellular,
carrier_id = device->home_provider_id();
device_properties.GetStringWithoutPathExpansion(shill::kMdnProperty, &mdn);
- MobileConfig* config = MobileConfig::GetInstance();
- if (config->IsReady()) {
- const MobileConfig::Carrier* carrier = config->GetCarrier(carrier_id);
- if (carrier && !carrier->top_up_url().empty())
- dictionary->SetString(kTagCarrierUrl, carrier->top_up_url());
- }
-
const base::ListValue* supported_carriers;
if (device_properties.GetListWithoutPathExpansion(
shill::kSupportedCarriersProperty, &supported_carriers)) {
@@ -256,17 +247,8 @@ void PopulateCellularDetails(const NetworkState* cellular,
}
}
- // Don't show any account management related buttons if the activation
- // state is unknown.
- if (cellular->activation_state() == shill::kActivationStateUnknown) {
- VLOG(2) << "Activation state unknown. Don't display buttons.";
- return;
- }
-
- if (cellular->activation_state() != shill::kActivationStateActivating &&
- cellular->activation_state() != shill::kActivationStateActivated) {
- dictionary->SetBoolean(kTagShowActivateButton, true);
- } else {
+ if (cellular->activation_state() == shill::kActivationStateActivating ||
+ cellular->activation_state() == shill::kActivationStateActivated) {
// TODO(stevenjb): Determine if we actually need this check. The payment url
// property is commented as 'Deprecated' in service_constants.h and appears
// to be unset in Shill, but we still reference it in mobile_setup.cc.
« no previous file with comments | « chrome/browser/resources/options/chromeos/onc_data.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698