diff options
author | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-11 06:05:29 +0000 |
---|---|---|
committer | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-11 06:05:29 +0000 |
commit | 9fe646539615b7ecadaa94d325949567b56d9830 (patch) | |
tree | e87a554f98a59980f02a43582a51ca6f8117f5a2 /chrome/browser/chromeos/cros/network_library.cc | |
parent | 7b4f670445844d3c874978decd933e906b42d527 (diff) | |
download | chromium_src-9fe646539615b7ecadaa94d325949567b56d9830.zip chromium_src-9fe646539615b7ecadaa94d325949567b56d9830.tar.gz chromium_src-9fe646539615b7ecadaa94d325949567b56d9830.tar.bz2 |
Change chrome://mobilesetup to open the networks portal page instead of starting activation flow for activated networks.
Change 'view account' button to use the new ui instead of opening the mobile extension directly.
For lte devices, detect when the portal cannot be reached due to no connectivity and display message prompting user to connect to Wi-Fi in that case.
BUG=178272
TEST=
1) click 'view account' button on settings page for an activated LTE network
-> Network portal should appear
2) disconnect all active connections
->a page with message 'Connect to Wi-Fi to login' should appear
3) connect CrOS device to a network
->Network portal should be shown again
4) disable mobile data
->mobilesetup ui closes
TBR=sky@chromium.org (for chrome/browser/browser_resources.grd)
Review URL: https://chromiumcodereview.appspot.com/12374040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library.cc')
-rw-r--r-- | chrome/browser/chromeos/cros/network_library.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc index c7bc032..f20abda 100644 --- a/chrome/browser/chromeos/cros/network_library.cc +++ b/chrome/browser/chromeos/cros/network_library.cc @@ -92,12 +92,6 @@ namespace { // If cellular device doesn't have SIM card, then retries are never used. const int kDefaultSimUnlockRetriesCount = 999; -// Redirect extension url for POST-ing url parameters to mobile account status -// sites. -const char kRedirectExtensionPage[] = - "chrome-extension://iadeocfgjdjdmpenejdbfeaocpbikmab/redirect.html?" - "autoPost=1"; - //////////////////////////////////////////////////////////////////////////////// // Misc. @@ -907,20 +901,6 @@ bool CellularNetwork::NeedsActivation() const { activation_state() == ACTIVATION_STATE_PARTIALLY_ACTIVATED); } -GURL CellularNetwork::GetAccountInfoUrl() const { - if (!post_data_.length()) - return GURL(payment_url()); - - GURL base_url(kRedirectExtensionPage); - GURL temp_url = net::AppendQueryParameter(base_url, - "post_data", - post_data_); - GURL redir_url = net::AppendQueryParameter(temp_url, - "formUrl", - payment_url()); - return redir_url; -} - std::string CellularNetwork::GetNetworkTechnologyString() const { // No need to localize these cellular technology abbreviations. switch (network_technology_) { |