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

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

Issue 1756193008: Support uninstalling ARC app from Chrome launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittest, mojo callback 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_context_menu.h
diff --git a/chrome/browser/ui/app_list/arc/arc_app_context_menu.h b/chrome/browser/ui/app_list/arc/arc_app_context_menu.h
index 7e7acbc5ee45d1539ef6e65fbf628c750a29c134..abf17ec9b068013f6af6e53b3f294092f77abecb 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_context_menu.h
+++ b/chrome/browser/ui/app_list/arc/arc_app_context_menu.h
@@ -17,6 +17,10 @@ namespace app_list {
class AppContextMenuDelegate;
}
+namespace mojo {
+class String;
+}
+
class ArcAppContextMenu : public app_list::AppContextMenu {
public:
ArcAppContextMenu(app_list::AppContextMenuDelegate* delegate,
@@ -33,6 +37,11 @@ class ArcAppContextMenu : public app_list::AppContextMenu {
void ExecuteCommand(int command_id, int event_flags) override;
private:
+ void UninstallApp();
+ static void OnUninstallAppResponse(const mojo::String& error_message);
khmel 2016/03/07 21:11:52 I don't think ArcAppContextMenu is good place to h
victorhsieh0 2016/03/07 23:54:43 Moved to utils per discussion.
+
+ bool CanBeUninstalled() const;
+
DISALLOW_COPY_AND_ASSIGN(ArcAppContextMenu);
};

Powered by Google App Engine
This is Rietveld 408576698