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

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

Issue 2257113002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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_test_util.cc
diff --git a/chrome/browser/extensions/extension_action_test_util.cc b/chrome/browser/extensions/extension_action_test_util.cc
index b5104ff2b0b58df5fdf3c875bc64350aa7d846b4..a9d631acfbc3c477d53dbf7ee7c18bcd556a8510 100644
--- a/chrome/browser/extensions/extension_action_test_util.cc
+++ b/chrome/browser/extensions/extension_action_test_util.cc
@@ -81,9 +81,9 @@ size_t GetPageActionCount(content::WebContents* web_contents,
// Creates a new ToolbarActionsModel for the given |context|.
std::unique_ptr<KeyedService> BuildToolbarModel(
content::BrowserContext* context) {
- return base::WrapUnique(
- new ToolbarActionsModel(Profile::FromBrowserContext(context),
- extensions::ExtensionPrefs::Get(context)));
+ return base::MakeUnique<ToolbarActionsModel>(
+ Profile::FromBrowserContext(context),
+ extensions::ExtensionPrefs::Get(context));
}
// Creates a new ToolbarActionsModel for the given profile, optionally

Powered by Google App Engine
This is Rietveld 408576698