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

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

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: 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 9e127eeb7f1da6c1e9a2988be5b2173bffbe13f7..330d6fef91f71c8d8113e6c7b75507a294cc8cd5 100644
--- a/extensions/browser/api/management/management_api_delegate.h
+++ b/extensions/browser/api/management/management_api_delegate.h
@@ -78,14 +78,15 @@ class ManagementAPIDelegate {
// Used to show a dialog prompt in chrome when management.setEnabled extension
// function is called.
- virtual scoped_ptr<InstallPromptDelegate> SetEnabledFunctionDelegate(
+ virtual std::unique_ptr<InstallPromptDelegate> SetEnabledFunctionDelegate(
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;
+ virtual std::unique_ptr<RequirementsChecker> CreateRequirementsChecker()
+ const = 0;
// Enables the extension identified by |extension_id|.
virtual void EnableExtension(content::BrowserContext* context,
@@ -98,7 +99,7 @@ class ManagementAPIDelegate {
Extension::DisableReason disable_reason) const = 0;
// Used to show a confirmation dialog when uninstalling |target_extension|.
- virtual scoped_ptr<UninstallDialogDelegate> UninstallFunctionDelegate(
+ virtual std::unique_ptr<UninstallDialogDelegate> UninstallFunctionDelegate(
ManagementUninstallFunctionBase* function,
const Extension* target_extension,
bool show_programmatic_uninstall_ui) const = 0;
@@ -121,7 +122,8 @@ class ManagementAPIDelegate {
LaunchType launch_type) const = 0;
// Creates a bookmark app for |launch_url|.
- virtual scoped_ptr<AppForLinkDelegate> GenerateAppForLinkFunctionDelegate(
+ virtual std::unique_ptr<AppForLinkDelegate>
+ GenerateAppForLinkFunctionDelegate(
ManagementGenerateAppForLinkFunction* function,
content::BrowserContext* context,
const std::string& title,
« no previous file with comments | « extensions/browser/api/management/management_api.cc ('k') | extensions/browser/api/messaging/native_message_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698