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

Side by Side Diff: chrome/browser/resources/settings/device_page/storage.js

Issue 2676743003: MD Settings: Hide sections in guest mode (Closed)
Patch Set: Fix closure Created 3 years, 10 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
« no previous file with comments | « chrome/browser/resources/settings/device_page/storage.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-storage' is the settings subpage for storage settings. 7 * 'settings-storage' is the settings subpage for storage settings.
8 */ 8 */
9 cr.exportPath('settings'); 9 cr.exportPath('settings');
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 type: Boolean, 42 type: Boolean,
43 value: false, 43 value: false,
44 }, 44 },
45 45
46 /** @private */ 46 /** @private */
47 androidEnabled_: { 47 androidEnabled_: {
48 type: Boolean, 48 type: Boolean,
49 value: false, 49 value: false,
50 }, 50 },
51 51
52 /** @private */
53 isGuest_: {
54 type: Boolean,
55 value: function() { return loadTimeData.getBoolean('isGuest'); }
56 },
57
52 /** @private {settings.StorageSizeStat} */ 58 /** @private {settings.StorageSizeStat} */
53 sizeStat_: Object, 59 sizeStat_: Object,
54 }, 60 },
55 61
56 /** 62 /**
57 * Timer ID for periodic update. 63 * Timer ID for periodic update.
58 * @private {number} 64 * @private {number}
59 */ 65 */
60 updateTimerId_: -1, 66 updateTimerId_: -1,
61 67
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 switch (spaceState) { 281 switch (spaceState) {
276 case settings.StorageSpaceState.LOW: 282 case settings.StorageSpaceState.LOW:
277 return 'space-low'; 283 return 'space-low';
278 case settings.StorageSpaceState.CRITICALLY_LOW: 284 case settings.StorageSpaceState.CRITICALLY_LOW:
279 return 'space-critically-low'; 285 return 'space-critically-low';
280 default: 286 default:
281 return ''; 287 return '';
282 } 288 }
283 }, 289 },
284 }); 290 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/device_page/storage.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698