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

Unified Diff: components/variations/service/variations_service.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/variations/service/variations_service.cc
diff --git a/components/variations/service/variations_service.cc b/components/variations/service/variations_service.cc
index 28b69bd98bb16fe67e7f788bc32627dc57832171..7d32630dbae236b143ebcb44a671a055e3c8c9f3 100644
--- a/components/variations/service/variations_service.cc
+++ b/components/variations/service/variations_service.cc
@@ -502,8 +502,8 @@ std::unique_ptr<VariationsService> VariationsService::Create(
#endif
result.reset(new VariationsService(
std::move(client),
- base::WrapUnique(new web_resource::ResourceRequestAllowedNotifier(
- local_state, disable_network_switch)),
+ base::MakeUnique<web_resource::ResourceRequestAllowedNotifier>(
+ local_state, disable_network_switch),
local_state, state_manager, ui_string_overrider));
return result;
}
@@ -514,8 +514,8 @@ std::unique_ptr<VariationsService> VariationsService::CreateForTesting(
PrefService* local_state) {
return base::WrapUnique(new VariationsService(
std::move(client),
- base::WrapUnique(new web_resource::ResourceRequestAllowedNotifier(
- local_state, nullptr)),
+ base::MakeUnique<web_resource::ResourceRequestAllowedNotifier>(
+ local_state, nullptr),
local_state, nullptr, UIStringOverrider()));
}

Powered by Google App Engine
This is Rietveld 408576698