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

Side by Side Diff: chrome/browser/resources/options/chromeos/storage_manager.js

Issue 2168583002: Storage manager: Show accounts panel from "Other users" link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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/options/chromeos/storage_manager.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 * Enumeration for device state about remaining space. 6 * Enumeration for device state about remaining space.
7 * These values must be kept in sync with 7 * These values must be kept in sync with
8 * StorageManagerHandler::StorageSpaceState in C++ code. 8 * StorageManagerHandler::StorageSpaceState in C++ code.
9 * @enum {number} 9 * @enum {number}
10 * @const 10 * @const
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }; 56 };
57 $('storage-manager-label-drive-cache').onclick = function() { 57 $('storage-manager-label-drive-cache').onclick = function() {
58 PageManager.showPageByName('storageClearDriveCache'); 58 PageManager.showPageByName('storageClearDriveCache');
59 }; 59 };
60 $('storage-manager-label-browsing-data').onclick = function() { 60 $('storage-manager-label-browsing-data').onclick = function() {
61 PageManager.showPageByName('clearBrowserData'); 61 PageManager.showPageByName('clearBrowserData');
62 }; 62 };
63 $('storage-manager-label-arc').onclick = function() { 63 $('storage-manager-label-arc').onclick = function() {
64 chrome.send('openArcStorage'); 64 chrome.send('openArcStorage');
65 }; 65 };
66 $('storage-manager-label-other-users').onclick = function() {
67 PageManager.showPageByName('accounts');
68 };
66 69
67 $('storage-confirm').onclick = function() { 70 $('storage-confirm').onclick = function() {
68 PageManager.closeOverlay(); 71 PageManager.closeOverlay();
69 }; 72 };
70 }, 73 },
71 74
72 /** @override */ 75 /** @override */
73 didShowPage: function() { 76 didShowPage: function() {
74 // Updating storage information can be expensive (e.g. computing directory 77 // Updating storage information can be expensive (e.g. computing directory
75 // sizes recursively), so we delay this operation until the page is shown. 78 // sizes recursively), so we delay this operation until the page is shown.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 'setDriveCacheSize', 194 'setDriveCacheSize',
192 'setOtherUsersSize', 195 'setOtherUsersSize',
193 'setSizeStat', 196 'setSizeStat',
194 'showArcItem', 197 'showArcItem',
195 ]); 198 ]);
196 199
197 return { 200 return {
198 StorageManager: StorageManager 201 StorageManager: StorageManager
199 }; 202 };
200 }); 203 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos/storage_manager.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698