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 { |