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

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

Issue 2073903002: Storage manager: Add browsing data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a minor issue on closure annotation. 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 50227a42610279ee4895078ef74ef07fdfed0c1b..6aed721179ecba2fe685816029b99427dad18eea 100644
--- a/chrome/browser/resources/options/chromeos/storage_manager.js
+++ b/chrome/browser/resources/options/chromeos/storage_manager.js
@@ -51,6 +51,9 @@ cr.define('options', function() {
$('storage-manager-label-drive-cache').onclick = function() {
PageManager.showPageByName('storageClearDriveCache');
};
+ $('storage-manager-label-browsing-data').onclick = function() {
+ PageManager.showPageByName('clearBrowserData');
+ };
$('storage-manager-label-arc').onclick = function() {
chrome.send('openArcStorage');
};
@@ -106,6 +109,15 @@ cr.define('options', function() {
},
/**
+ * Updates the size of browsing data.
+ * @param {string} size Formatted string of the size of Downloads.
+ * @private
+ */
+ setBrowsingDataSize_: function(size) {
+ $('storage-manager-size-browsing-data').textContent = size;
+ },
+
+ /**
* Updates the total size of Android apps and cache.
* @param {string} size Formatted string of the size of Android apps and
* cache.
@@ -128,6 +140,7 @@ cr.define('options', function() {
// Forward public APIs to private implementations.
cr.makePublic(StorageManager, [
'setArcSize',
+ 'setBrowsingDataSize',
'setDownloadsSize',
'setDriveCacheSize',
'setSizeStat',

Powered by Google App Engine
This is Rietveld 408576698