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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_utils.h

Issue 1756193008: Support uninstalling ARC app from Chrome launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/ui/app_list/arc/arc_app_utils.h
diff --git a/chrome/browser/ui/app_list/arc/arc_app_utils.h b/chrome/browser/ui/app_list/arc/arc_app_utils.h
index bd9ba934fcd8f61dce07b8f925aedac90717ba3b..1f1cabea5b33e6c071319343f7b5087332c7105c 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_utils.h
+++ b/chrome/browser/ui/app_list/arc/arc_app_utils.h
@@ -14,8 +14,13 @@ namespace content {
class BrowserContext;
}
+namespace mojo {
+class String;
+}
+
namespace arc {
using CanHandleResolutionCallback = base::Callback<void(bool)>;
+using UninstallAppCallback = base::Callback<void(const mojo::String&)>;
}
namespace arc {
xiyuan 2016/03/08 16:40:11 nit: Can we combine this with the one started at l
victorhsieh0 2016/03/08 18:02:52 Done.
@@ -29,7 +34,12 @@ bool LaunchApp(content::BrowserContext* context, const std::string& app_id);
bool CanHandleResolution(content::BrowserContext* context,
const std::string& app_id,
const gfx::Rect& rect,
- const CanHandleResolutionCallback callback);
+ const CanHandleResolutionCallback& callback);
+
+// Uninstalls the package in ARC.
+bool UninstallApp(const std::string& package_name,
+ const UninstallAppCallback& callback);
+void OnUninstallAppResponse(const mojo::String& error_message);
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698