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

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

Issue 2210933004: Settings Router Refactor: Kill settings-router. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge 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-default-browser-page' is the settings page that contains 7 * 'settings-default-browser-page' is the settings page that contains
8 * settings to change the default browser (i.e. which the OS will open). 8 * settings to change the default browser (i.e. which the OS will open).
9 */ 9 */
10 Polymer({ 10 Polymer({
11 is: 'settings-default-browser-page', 11 is: 'settings-default-browser-page',
12 12
13 properties: { 13 properties: {
14 /** 14 /**
15 * The current active route.
16 */
17 currentRoute: {
18 type: Object,
19 notify: true,
20 },
21
22 /**
23 * A message about whether Chrome is the default browser. 15 * A message about whether Chrome is the default browser.
24 */ 16 */
25 message_: { 17 message_: {
26 type: String, 18 type: String,
27 }, 19 },
28 20
29 /** 21 /**
30 * Indicates if the next updateDefaultBrowserState_ invocation is following 22 * Indicates if the next updateDefaultBrowserState_ invocation is following
31 * a call to SettingsDefaultBrowser.setAsDefaultBrowser(). 23 * a call to SettingsDefaultBrowser.setAsDefaultBrowser().
32 */ 24 */
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 canBeDefault ? 'defaultBrowserDefault' : 'defaultBrowserUnknown'); 76 canBeDefault ? 'defaultBrowserDefault' : 'defaultBrowserUnknown');
85 } 77 }
86 }, 78 },
87 79
88 /** @private */ 80 /** @private */
89 onSetDefaultBrowserTap_: function() { 81 onSetDefaultBrowserTap_: function() {
90 this.startedSetAsDefault_ = true; 82 this.startedSetAsDefault_ = true;
91 chrome.send('SettingsDefaultBrowser.setAsDefaultBrowser'); 83 chrome.send('SettingsDefaultBrowser.setAsDefaultBrowser');
92 }, 84 },
93 }); 85 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698