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

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

Issue 2541923002: MD Settings: Add Google Play Store (Arc++) section (Closed)
Patch Set: Feedback Created 4 years 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-basic-page' is the settings page containing the basic settings. 7 * 'settings-basic-page' is the settings page containing the basic settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-basic-page', 10 is: 'settings-basic-page',
11 11
12 behaviors: [SettingsPageVisibility, MainPageBehavior], 12 behaviors: [SettingsPageVisibility, MainPageBehavior],
13 13
14 properties: { 14 properties: {
15 /** Preferences state. */ 15 /** Preferences state. */
16 prefs: { 16 prefs: {
17 type: Object, 17 type: Object,
18 notify: true, 18 notify: true,
19 }, 19 },
20 20
21 showAndroidApps: Boolean,
22
21 /** 23 /**
22 * True if the basic page should currently display the reset profile banner. 24 * True if the basic page should currently display the reset profile banner.
23 * @private {boolean} 25 * @private {boolean}
24 */ 26 */
25 showResetProfileBanner_: { 27 showResetProfileBanner_: {
26 type: Boolean, 28 type: Boolean,
27 value: function() { 29 value: function() {
28 return loadTimeData.getBoolean('showResetProfileBanner'); 30 return loadTimeData.getBoolean('showResetProfileBanner');
29 }, 31 },
30 }, 32 },
31 }, 33 },
32 34
35 /** @private */
33 onResetDone_: function() { 36 onResetDone_: function() {
34 this.showResetProfileBanner_ = false; 37 this.showResetProfileBanner_ = false;
35 }, 38 },
39
40 /**
41 * @return {boolean}
42 * @private
43 */
44 shouldShowAndroidApps_: function() {
45 var visibility = /** @type{boolean|undefined} */ (
michaelpg 2016/12/02 03:47:44 nit: space after @type?
stevenjb 2016/12/02 17:43:56 Done.
46 this.get('pageVisibility.androidApps'));
47 return this.showAndroidApps && this.showPage(visibility);
48 },
36 }); 49 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698