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

Unified Diff: apps/app_shim/extension_app_shim_handler_mac.h

Issue 113553002: Use ExtensionEnableFlow for shim initiated launches. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't pass pointers in callback. Handle deleted app or profile. Created 7 years 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
« no previous file with comments | « apps/app_shim/DEPS ('k') | apps/app_shim/extension_app_shim_handler_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_shim/extension_app_shim_handler_mac.h
diff --git a/apps/app_shim/extension_app_shim_handler_mac.h b/apps/app_shim/extension_app_shim_handler_mac.h
index 140fc02ff67ed8ecc3b3416b5df7edc3bf9d19f8..c8069ce23b8c81b741ba8d2af4eb897aeb5dd892 100644
--- a/apps/app_shim/extension_app_shim_handler_mac.h
+++ b/apps/app_shim/extension_app_shim_handler_mac.h
@@ -55,6 +55,9 @@ class ExtensionAppShimHandler : public AppShimHandler,
virtual const extensions::Extension* GetAppExtension(
Profile* profile, const std::string& extension_id);
+ virtual void EnableExtension(Profile* profile,
+ const std::string& extension_id,
+ const base::Callback<void()>& callback);
virtual void LaunchApp(Profile* profile,
const extensions::Extension* extension,
const std::vector<base::FilePath>& files);
@@ -121,6 +124,12 @@ class ExtensionAppShimHandler : public AppShimHandler,
const std::vector<base::FilePath>& files,
Profile* profile);
+ // This is passed to Delegate::EnableViaPrompt for shim-initiated launches
+ // where the extension is disabled.
+ void OnExtensionEnabled(const base::FilePath& profile_path,
+ const std::string& app_id,
+ const std::vector<base::FilePath>& files);
+
scoped_ptr<Delegate> delegate_;
HostMap hosts_;
« no previous file with comments | « apps/app_shim/DEPS ('k') | apps/app_shim/extension_app_shim_handler_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698