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

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_subpage.js

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge Created 3 years, 5 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 /** 5 /**
6 * @fileoverview Polymer element for displaying information about WiFi, 6 * @fileoverview Polymer element for displaying information about WiFi,
7 * WiMAX, or virtual networks. 7 * WiMAX, or virtual networks.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 this.networkingPrivate.onNetworkListChanged.removeListener( 112 this.networkingPrivate.onNetworkListChanged.removeListener(
113 assert(this.networkListChangedListener_)); 113 assert(this.networkListChangedListener_));
114 }, 114 },
115 115
116 /** 116 /**
117 * settings.RouteObserverBehavior 117 * settings.RouteObserverBehavior
118 * @param {!settings.Route} route 118 * @param {!settings.Route} route
119 * @protected 119 * @protected
120 */ 120 */
121 currentRouteChanged: function(route) { 121 currentRouteChanged: function(route) {
122 if (route != settings.Route.INTERNET_NETWORKS) { 122 if (route != settings.routes.INTERNET_NETWORKS) {
123 this.stopScanning_(); 123 this.stopScanning_();
124 return; 124 return;
125 } 125 }
126 // Clear any stale data. 126 // Clear any stale data.
127 this.networkStateList_ = []; 127 this.networkStateList_ = [];
128 this.thirdPartyVpns_ = {}; 128 this.thirdPartyVpns_ = {};
129 // Request the list of networks and start scanning if necessary. 129 // Request the list of networks and start scanning if necessary.
130 this.getNetworkStateList_(); 130 this.getNetworkStateList_();
131 this.updateScanning_(); 131 this.updateScanning_();
132 }, 132 },
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 470
471 /** 471 /**
472 * @param {*} lhs 472 * @param {*} lhs
473 * @param {*} rhs 473 * @param {*} rhs
474 * @return {boolean} 474 * @return {boolean}
475 */ 475 */
476 isEqual_: function(lhs, rhs) { 476 isEqual_: function(lhs, rhs) {
477 return lhs === rhs; 477 return lhs === rhs;
478 }, 478 },
479 }); 479 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698