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

Side by Side Diff: chrome/browser/chromeos/offline/offline_load_page.cc

Issue 10456045: Refactored mobile activation engine outside of WebUI handler in order to expose its state to other … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/network_message_observer.cc ('k') | chrome/browser/chromeos/status/network_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698