| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/offline/offline_load_page.h" | 5 #include "chrome/browser/chromeos/offline/offline_load_page.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 if (command.length() > 1 && command[0] == '"') { | 181 if (command.length() > 1 && command[0] == '"') { |
| 182 command = command.substr(1, command.length() - 2); | 182 command = command.substr(1, command.length() - 2); |
| 183 } | 183 } |
| 184 // TODO(oshima): record action for metrics. | 184 // TODO(oshima): record action for metrics. |
| 185 if (command == "proceed") { | 185 if (command == "proceed") { |
| 186 interstitial_page_->Proceed(); | 186 interstitial_page_->Proceed(); |
| 187 } else if (command == "dontproceed") { | 187 } else if (command == "dontproceed") { |
| 188 interstitial_page_->DontProceed(); | 188 interstitial_page_->DontProceed(); |
| 189 } else if (command == "open_network_settings") { | 189 } else if (command == "open_network_settings") { |
| 190 ash::Shell::GetInstance()->tray_delegate()->ShowNetworkSettings(); | 190 ash::Shell::GetInstance()->tray_delegate()->ShowNetworkSettings(); |
| 191 } else if (command == "open_activate_broadband") { | |
| 192 ash::Shell::GetInstance()->delegate()->OpenMobileSetup(); | |
| 193 } else { | 191 } else { |
| 194 LOG(WARNING) << "Unknown command:" << cmd; | 192 LOG(WARNING) << "Unknown command:" << cmd; |
| 195 } | 193 } |
| 196 } | 194 } |
| 197 | 195 |
| 198 void OfflineLoadPage::NotifyBlockingPageComplete(bool proceed) { | 196 void OfflineLoadPage::NotifyBlockingPageComplete(bool proceed) { |
| 199 BrowserThread::PostTask( | 197 BrowserThread::PostTask( |
| 200 BrowserThread::IO, FROM_HERE, base::Bind(callback_, proceed)); | 198 BrowserThread::IO, FROM_HERE, base::Bind(callback_, proceed)); |
| 201 } | 199 } |
| 202 | 200 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 222 for (size_t i = 0; i < cell_networks.size(); ++i) { | 220 for (size_t i = 0; i < cell_networks.size(); ++i) { |
| 223 chromeos::ActivationState activation_state = | 221 chromeos::ActivationState activation_state = |
| 224 cell_networks[i]->activation_state(); | 222 cell_networks[i]->activation_state(); |
| 225 if (activation_state == ACTIVATION_STATE_ACTIVATED) | 223 if (activation_state == ACTIVATION_STATE_ACTIVATED) |
| 226 return false; | 224 return false; |
| 227 } | 225 } |
| 228 return true; | 226 return true; |
| 229 } | 227 } |
| 230 | 228 |
| 231 } // namespace chromeos | 229 } // namespace chromeos |
| OLD | NEW |