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

Unified Diff: chrome/browser/resources/options2/chromeos/internet_detail.js

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/chromeos/status/network_menu.cc ('k') | chrome/browser/ui/views/ash/chrome_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/chromeos/internet_detail.js
diff --git a/chrome/browser/resources/options2/chromeos/internet_detail.js b/chrome/browser/resources/options2/chromeos/internet_detail.js
index da131d596b1cd7c027ef42ed89962557ad0627c4..3d71534281bd2fdb1876a81e66963e4af1f3d7a5 100644
--- a/chrome/browser/resources/options2/chromeos/internet_detail.js
+++ b/chrome/browser/resources/options2/chromeos/internet_detail.js
@@ -81,16 +81,16 @@ cr.define('options.internet', function() {
initializePage: function() {
OptionsPage.prototype.initializePage.call(this);
options.internet.CellularPlanElement.decorate($('plan-list'));
- this.initializePageContents_();
- this.showNetworkDetails_();
+ var params = parseQueryParams(window.location);
+ this.initializePageContents_(params);
+ this.showNetworkDetails_(params);
},
/**
* Auto-activates the network details dialog if network information
* is included in the URL.
*/
- showNetworkDetails_: function() {
- var params = parseQueryParams(window.location);
+ showNetworkDetails_: function(params) {
var servicePath = params.servicePath;
var networkType = params.networkType;
if (!servicePath || !servicePath.length ||
@@ -103,7 +103,7 @@ cr.define('options.internet', function() {
/**
* Initializes the contents of the page.
*/
- initializePageContents_: function() {
+ initializePageContents_: function(params) {
$('details-internet-dismiss').addEventListener('click', function(event) {
DetailsInternetPage.setDetails();
});
@@ -124,7 +124,7 @@ cr.define('options.internet', function() {
});
$('buyplan-details').addEventListener('click', function(event) {
- chrome.send('buyDataPlan');
+ chrome.send('buyDataPlan', [params.servicePath]);
OptionsPage.closeOverlay();
});
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.cc ('k') | chrome/browser/ui/views/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698