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

Unified Diff: chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.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/api/declarative_content/chrome_content_rules_registry.cc
diff --git a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
index ca4a99414c081b4fbd0df006b0783570c5a41ba2..c5b2f3d705d768d6b08baeb5b26b6e579418a034 100644
--- a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
@@ -180,9 +180,8 @@ ChromeContentRulesRegistry::CreateRule(
// Note: |api_rule| may contain tags, but these are ignored.
- return base::WrapUnique(new ContentRule(extension, std::move(conditions),
- std::move(actions),
- *api_rule.priority));
+ return base::MakeUnique<ContentRule>(extension, std::move(conditions),
+ std::move(actions), *api_rule.priority);
}
bool ChromeContentRulesRegistry::ManagingRulesForBrowserContext(

Powered by Google App Engine
This is Rietveld 408576698