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

Unified Diff: components/content_settings/core/browser/content_settings_pref_provider.cc

Issue 2257793002: 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: components/content_settings/core/browser/content_settings_pref_provider.cc
diff --git a/components/content_settings/core/browser/content_settings_pref_provider.cc b/components/content_settings/core/browser/content_settings_pref_provider.cc
index c544e186aa2f6482e2fa1632f9fe2e41c4545921..caa4c7b77c54d448736ebd39fb489331bc0c5440 100644
--- a/components/content_settings/core/browser/content_settings_pref_provider.cc
+++ b/components/content_settings/core/browser/content_settings_pref_provider.cc
@@ -95,10 +95,10 @@ PrefProvider::PrefProvider(PrefService* prefs, bool incognito)
for (const WebsiteSettingsInfo* info : *website_settings) {
content_settings_prefs_.insert(std::make_pair(
info->type(),
- base::WrapUnique(new ContentSettingsPref(
+ base::MakeUnique<ContentSettingsPref>(
info->type(), prefs_, &pref_change_registrar_, info->pref_name(),
is_incognito_,
- base::Bind(&PrefProvider::Notify, base::Unretained(this))))));
+ base::Bind(&PrefProvider::Notify, base::Unretained(this)))));
}
if (!is_incognito_) {

Powered by Google App Engine
This is Rietveld 408576698