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

Unified Diff: chrome/browser/resources/cleanup_tool/manager.js

Issue 2822433003: Cleanup Tool WebUI: Add functionality to the Scan button (Closed)
Patch Set: Add WeakPtrFactory Created 3 years, 8 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/cleanup_tool/manager.js
diff --git a/chrome/browser/resources/cleanup_tool/manager.js b/chrome/browser/resources/cleanup_tool/manager.js
index 81ad5884cdbf01b07c65a9c3a373c1e556314cb2..d9bfa9a8fdcbe6a46aae7c31d8000c141bf35117 100644
--- a/chrome/browser/resources/cleanup_tool/manager.js
+++ b/chrome/browser/resources/cleanup_tool/manager.js
@@ -51,7 +51,16 @@ Polymer({
* @private
*/
onScanTap_: function() {
- // TODO implement me.
+ this.isRunningScanner = true;
+ this.browserProxy_.startScan().then(this.onScanComplete_.bind(this));
+ },
+
+ /**
+ * @param {LastScanResult} lastScanResults
+ */
+ onScanComplete_: function(lastScanResults) {
+ this.isRunningScanner = false;
+ this.updateLastScanState_(lastScanResults);
},
/**

Powered by Google App Engine
This is Rietveld 408576698