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

Side by Side Diff: chrome/browser/resources/settings/printing_page/printing_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Polymer({ 5 Polymer({
6 is: 'settings-printing-page', 6 is: 'settings-printing-page',
7 7
8 properties: { 8 properties: {
9 /** Preferences state. */ 9 /** Preferences state. */
10 prefs: { 10 prefs: {
11 type: Object, 11 type: Object,
12 notify: true, 12 notify: true,
13 }, 13 },
14 14
15 /** The current active route. */ 15 /** The current active route. */
16 currentRoute: { 16 currentRoute: {
17 type: Object, 17 type: Object,
18 notify: true, 18 notify: true,
19 }, 19 },
20 }, 20 },
21 21
22 <if expr="chromeos"> 22 <if expr="chromeos">
23 /** @private */ 23 /** @private */
24 onTapCupsPrinters_: function() { 24 onTapCupsPrinters_: function() {
25 this.$.pages.setSubpageChain(['cups-printers']); 25 settings.navigateTo(settings.Route.CUPS_PRINTERS);
26 }, 26 },
27 </if> 27 </if>
28 28
29 /** @private */ 29 /** @private */
30 onTapCloudPrinters_: function() { 30 onTapCloudPrinters_: function() {
31 this.$.pages.setSubpageChain(['cloud-printers']); 31 settings.navigateTo(settings.Route.CLOUD_PRINTERS);
32 }, 32 },
33 }); 33 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698