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

Unified Diff: chrome/browser/extensions/extension_action_manager.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/extension_action_manager.cc
diff --git a/chrome/browser/extensions/extension_action_manager.cc b/chrome/browser/extensions/extension_action_manager.cc
index 4fd90e8d3a00b90c587975b602266174cb236f16..fe476fadb4c0237af5395422bd78da5d36fc842f 100644
--- a/chrome/browser/extensions/extension_action_manager.cc
+++ b/chrome/browser/extensions/extension_action_manager.cc
@@ -132,7 +132,7 @@ ExtensionAction* ExtensionActionManager::GetBrowserAction(
profile_);
}
-scoped_ptr<ExtensionAction> ExtensionActionManager::GetBestFitAction(
+std::unique_ptr<ExtensionAction> ExtensionActionManager::GetBestFitAction(
const Extension& extension,
ActionInfo::Type type) const {
const ActionInfo* info = ActionInfo::GetBrowserActionInfo(&extension);
@@ -143,8 +143,8 @@ scoped_ptr<ExtensionAction> ExtensionActionManager::GetBestFitAction(
// If no ActionInfo exists for |extension|, create and return a new action
// with a blank ActionInfo.
// Populate any missing values from |extension|'s manifest.
- scoped_ptr<ExtensionAction> new_action(new ExtensionAction(
- extension, type, info ? *info : ActionInfo()));
+ std::unique_ptr<ExtensionAction> new_action(
+ new ExtensionAction(extension, type, info ? *info : ActionInfo()));
return new_action;
}
« no previous file with comments | « chrome/browser/extensions/extension_action_manager.h ('k') | chrome/browser/extensions/extension_action_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698