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

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

Issue 2819633003: Cleanup Tool WebUI: Add functionality to the Cleanup button (Closed)
Patch Set: Fix typdef {[ -> {{ 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 d62dbe2f3f9bce7da044e83031bb4261576e769f..ef22211d4163b605a1979186935b164585f85e13 100644
--- a/chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.js
+++ b/chrome/browser/resources/cleanup_tool/cleanup_browser_proxy.js
@@ -17,6 +17,15 @@
*/
var LastScanResult;
+/**
+ * @typedef {{
+ * wasCancelled: boolean,
+ * uwsRemoved: Array<string>,
+ * requiresReboot: boolean,
+ * }}
+ */
+var CleanupResult;
+
cr.define('cleanup', function() {
/** @interface */
function CleanupBrowserProxy() {}
@@ -32,6 +41,12 @@ cr.define('cleanup', function() {
* @return {!Promise<LastScanResult>}
*/
startScan: function() {},
+
+ /**
+ * Opens the prompt to run the Chrome Cleanup Tool.
+ * @return {!Promise<CleanupResult>}
+ */
+ startCleanup: function() {},
};
/**
@@ -50,6 +65,10 @@ cr.define('cleanup', function() {
startScan: function() {
return cr.sendWithPromise('startScan');
},
+ /** @override */
+ startCleanup: function() {
+ return cr.sendWithPromise('startCleanup');
+ },
};
return {
« no previous file with comments | « chrome/browser/component_updater/sw_reporter_installer_win.cc ('k') | chrome/browser/resources/cleanup_tool/manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698