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

Unified Diff: extensions/browser/api/management/management_api_delegate.h

Issue 1534123002: [Extensions] Migrate ExtensionInstallPrompt::Delegate to be a callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « extensions/browser/api/management/management_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/management/management_api_delegate.h
diff --git a/extensions/browser/api/management/management_api_delegate.h b/extensions/browser/api/management/management_api_delegate.h
index f7b15a71e9257174e093df3957e8b3287853b37d..9e127eeb7f1da6c1e9a2988be5b2173bffbe13f7 100644
--- a/extensions/browser/api/management/management_api_delegate.h
+++ b/extensions/browser/api/management/management_api_delegate.h
@@ -14,6 +14,7 @@
namespace content {
class BrowserContext;
+class WebContents;
} // namespace content
namespace extensions {
@@ -78,8 +79,10 @@ class ManagementAPIDelegate {
// Used to show a dialog prompt in chrome when management.setEnabled extension
// function is called.
virtual scoped_ptr<InstallPromptDelegate> SetEnabledFunctionDelegate(
- ManagementSetEnabledFunction* function,
- const Extension* extension) const = 0;
+ content::WebContents* web_contents,
+ content::BrowserContext* browser_context,
+ const Extension* extension,
+ const base::Callback<void(bool)>& callback) const = 0;
// Returns a new RequirementsChecker.
virtual scoped_ptr<RequirementsChecker> CreateRequirementsChecker() const = 0;
« no previous file with comments | « extensions/browser/api/management/management_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698