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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
index 983a2d745c0900492ebb323af26421963234af02..ef11169ec18fb64238a387c769db18c2671ad501 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -592,7 +592,13 @@ void InternetOptionsHandler::ShowMorePlanInfoCallback(const ListValue* args) {
void InternetOptionsHandler::BuyDataPlanCallback(const ListValue* args) {
if (!web_ui())
return;
- ash::Shell::GetInstance()->delegate()->OpenMobileSetup();
+
+ std::string service_path;
+ if (args->GetSize() != 1 || !args->GetString(0, &service_path)) {
+ NOTREACHED();
+ return;
+ }
+ ash::Shell::GetInstance()->delegate()->OpenMobileSetup(service_path);
}
void InternetOptionsHandler::SetApnCallback(const ListValue* args) {
@@ -1231,7 +1237,7 @@ void InternetOptionsHandler::HandleCellularButtonClick(
} else if (command == "disconnect") {
cros_->DisconnectFromNetwork(cellular);
} else if (command == "activate") {
- ash::Shell::GetInstance()->delegate()->OpenMobileSetup();
+ ash::Shell::GetInstance()->delegate()->OpenMobileSetup(service_path);
} else if (command == "options") {
PopulateDictionaryDetails(cellular);
}
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698