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

Unified Diff: chrome/browser/resources/settings/device_page/drive_cache_dialog.js

Issue 2348913002: Port storage manager to MD settings. (Closed)
Patch Set: histograms.xml Created 4 years, 3 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/settings/device_page/drive_cache_dialog.js
diff --git a/chrome/browser/resources/settings/device_page/drive_cache_dialog.js b/chrome/browser/resources/settings/device_page/drive_cache_dialog.js
new file mode 100644
index 0000000000000000000000000000000000000000..858c7749b3d827217e1ba743118f6920c8ed70fd
--- /dev/null
+++ b/chrome/browser/resources/settings/device_page/drive_cache_dialog.js
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview
+ * 'settings-drive-cache-dialog' is the dialog to delete Google Drive temporary
+ * offline files.
+ */
+
michaelpg 2016/10/01 01:41:04 nit: remove newline
fukino 2016/10/03 18:40:41 Done.
+Polymer({
+ is: 'settings-drive-cache-dialog',
+
+ behaviors: [
+ I18nBehavior,
+ ],
+
+ properties: {},
michaelpg 2016/10/01 01:41:04 remove
fukino 2016/10/03 18:40:41 Done.
+
+ open: function() {
+ this.$.dialog.showModal();
+ },
+
+ /** @private */
+ onCancelTap_: function() {
+ this.$.dialog.cancel();
+ },
+
+ /** @private */
+ onDeleteTap_: function() {
+ chrome.send('clearDriveCache');
+ this.$.dialog.close();
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698