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

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: sticky default 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..38cabf948c1f2f508a2d02af58b8da8d8ad9b1e1 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_utils.h
+++ b/chrome/browser/ui/app_list/arc/arc_app_utils.h
@@ -14,12 +14,15 @@ namespace content {
class BrowserContext;
}
-namespace arc {
-using CanHandleResolutionCallback = base::Callback<void(bool)>;
+namespace mojo {
+class String;
}
namespace arc {
+using CanHandleResolutionCallback = base::Callback<void(bool)>;
+using UninstallAppCallback = base::Callback<void(const mojo::String&)>;
+
bool LaunchApp(content::BrowserContext* context, const std::string& app_id);
// Tests if the application can use the given target resolution.
@@ -29,7 +32,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