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

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: updates 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
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 a74f299c0fc18cca6024b44f59bfe4a42ae9affd..52470a36dd0ca4a8403c79919543c155abedd4d8 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -578,7 +578,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) {
@@ -1211,7 +1217,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);
}

Powered by Google App Engine
This is Rietveld 408576698