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

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

Issue 1503403004: Settings People Rewrite: Move users_page as subpage of People. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0053-people-rename-a-bunch-of-stuff
Patch Set: Created 5 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-people-page' is the settings page containing sign-in settings. 7 * 'settings-people-page' is the settings page containing sign-in settings.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
(...skipping 15 matching lines...) Expand all
26 properties: { 26 properties: {
27 /** 27 /**
28 * The current active route. 28 * The current active route.
29 */ 29 */
30 currentRoute: { 30 currentRoute: {
31 type: Object, 31 type: Object,
32 notify: true, 32 notify: true,
33 }, 33 },
34 34
35 /** 35 /**
36 * Preferences state.
37 */
38 prefs: {
39 type: Object,
40 notify: true,
41 },
42
43 /**
36 * The current sync status, supplied by settings.SyncPrivateApi. 44 * The current sync status, supplied by settings.SyncPrivateApi.
37 * @type {?settings.SyncPrivateApi.SyncStatus} 45 * @type {?settings.SyncPrivateApi.SyncStatus}
38 */ 46 */
39 syncStatus: Object, 47 syncStatus: Object,
40 }, 48 },
41 49
42 created: function() { 50 created: function() {
43 settings.SyncPrivateApi.getSyncStatus( 51 settings.SyncPrivateApi.getSyncStatus(
44 this.handleSyncStatusFetched_.bind(this)); 52 this.handleSyncStatusFetched_.bind(this));
45 }, 53 },
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Dialog automatically closed because button has dialog-confirm attribute. 87 // Dialog automatically closed because button has dialog-confirm attribute.
80 }, 88 },
81 89
82 /** @private */ 90 /** @private */
83 onSyncTap_: function() { 91 onSyncTap_: function() {
84 this.$.pages.setSubpageChain(['sync']); 92 this.$.pages.setSubpageChain(['sync']);
85 }, 93 },
86 94
87 /** @private */ 95 /** @private */
88 onManageOtherPeople_: function() { 96 onManageOtherPeople_: function() {
97 <if expr="not chromeos">
89 settings.SyncPrivateApi.manageOtherPeople(); 98 settings.SyncPrivateApi.manageOtherPeople();
99 </if>
100 <if expr="chromeos">
101 this.$.pages.setSubpageChain(['users']);
102 </if>
90 }, 103 },
91 104
92 /** 105 /**
93 * @private 106 * @private
94 * @return {boolean} 107 * @return {boolean}
95 */ 108 */
96 isStatusTextSet_: function(syncStatus) { 109 isStatusTextSet_: function(syncStatus) {
97 return syncStatus && syncStatus.statusText.length > 0; 110 return syncStatus && syncStatus.statusText.length > 0;
98 }, 111 },
99 112
100 /** 113 /**
101 * @private 114 * @private
102 * @return {boolean} 115 * @return {boolean}
103 */ 116 */
104 isAdvancedSyncSettingsVisible_: function(syncStatus) { 117 isAdvancedSyncSettingsVisible_: function(syncStatus) {
105 return syncStatus && syncStatus.signedIn && !syncStatus.managed && 118 return syncStatus && syncStatus.signedIn && !syncStatus.managed &&
106 syncStatus.syncSystemEnabled; 119 syncStatus.syncSystemEnabled;
107 }, 120 },
108 }); 121 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698