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

Unified Diff: chrome/browser/resources/options/chromeos/storage_manager.js

Issue 2070893003: Storage manager: Show Google Drive offline files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct string and indentation. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/chromeos/storage_manager.js
diff --git a/chrome/browser/resources/options/chromeos/storage_manager.js b/chrome/browser/resources/options/chromeos/storage_manager.js
index 65aa199935a5f2b88c9c363e6e138d7179ce99fd..426e9a820f5bb83b92eb3cc3d979dda1614f4366 100644
--- a/chrome/browser/resources/options/chromeos/storage_manager.js
+++ b/chrome/browser/resources/options/chromeos/storage_manager.js
@@ -34,6 +34,9 @@ cr.define('options', function() {
$('storage-manager-label-downloads').onclick = function() {
chrome.send('openDownloads');
};
+ $('storage-manager-label-drive-cache').onclick = function() {
+ PageManager.showPageByName('storageClearDriveCache');
+ };
$('storage-manager-label-arc').onclick = function() {
chrome.send('openArcStorage');
};
@@ -72,6 +75,16 @@ cr.define('options', function() {
},
/**
+ * Updates the size of Google Drive offline files.
+ * @param {string} size Formatted string of the size of Google Drive offline
+ * files.
+ * @private
+ */
+ setDriveCacheSize_: function(size) {
+ $('storage-manager-size-drive-cache').textContent = size;
+ },
+
+ /**
* Updates the total size of Android apps and cache.
* @param {string} size Formatted string of the size of Android apps and
* cache.
@@ -95,6 +108,7 @@ cr.define('options', function() {
cr.makePublic(StorageManager, [
'setArcSize',
'setDownloadsSize',
+ 'setDriveCacheSize',
'setSizeStat',
'showArcItem',
]);
« no previous file with comments | « chrome/browser/resources/options/chromeos/storage_manager.html ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698