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

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

Issue 2156413002: Settings Router Refactor: Migrate to settings.Route.navigateTo calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use timing fix Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 6 * @fileoverview
7 * 'settings-internet-page' is the settings page containing internet 7 * 'settings-internet-page' is the settings page containing internet
8 * settings. 8 * settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 value: chrome.networkingPrivate, 42 value: chrome.networkingPrivate,
43 }, 43 },
44 }, 44 },
45 45
46 /** 46 /**
47 * @param {!{detail: !CrOnc.NetworkStateProperties}} event 47 * @param {!{detail: !CrOnc.NetworkStateProperties}} event
48 * @private 48 * @private
49 */ 49 */
50 onShowDetail_: function(event) { 50 onShowDetail_: function(event) {
51 this.detailGuid = event.detail.GUID; 51 this.detailGuid = event.detail.GUID;
52 this.$.pages.setSubpageChain(['network-detail']); 52 settings.navigateTo(settings.Route.NETWORK_DETAIL);
53 }, 53 },
54 54
55 /** 55 /**
56 * @param {!{detail: {type: string}}} event 56 * @param {!{detail: {type: string}}} event
57 * @private 57 * @private
58 */ 58 */
59 onShowKnownNetworks_: function(event) { 59 onShowKnownNetworks_: function(event) {
60 this.knownNetworksType = event.detail.type; 60 this.knownNetworksType = event.detail.type;
61 this.$.pages.setSubpageChain(['known-networks']); 61 settings.navigateTo(settings.Route.KNOWN_NETWORKS);
62 }, 62 },
63 63
64 }); 64 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698