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

Unified Diff: chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.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/cleanup_browser_proxy.js
diff --git a/chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.js b/chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.js
index 1e0e859e4b569d28bdba3d474d875521961b1470..d62dbe2f3f9bce7da044e83031bb4261576e769f 100644
--- a/chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.js
+++ b/chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.js
@@ -27,6 +27,11 @@ cr.define('cleanup', function() {
* @return {!Promise<LastScanResult>}
*/
requestLastScanResult: function() {},
+ /**
+ * Attempts to run the Chrome Cleanup Tool in scanning mode.
+ * @return {!Promise<LastScanResult>}
+ */
+ startScan: function() {},
};
/**
@@ -41,6 +46,10 @@ cr.define('cleanup', function() {
requestLastScanResult: function() {
return cr.sendWithPromise('requestLastScanResult');
},
+ /** @override */
+ startScan: function() {
+ return cr.sendWithPromise('startScan');
+ },
};
return {
« no previous file with comments | « chrome/browser/component_updater/sw_reporter_installer_win.cc ('k') | chrome/browser/resources/cleanup_tool/manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698