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

Unified Diff: chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.cc

Issue 2257103002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/chromeos/certificate_provider/certificate_provider_service_factory.cc
diff --git a/chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.cc b/chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.cc
index eec8b3bf2483b30e2f303a1158e9857ef021862d..2edf5e78866c303e2db3a4d7607dd30fe2294430 100644
--- a/chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.cc
+++ b/chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.cc
@@ -144,9 +144,9 @@ bool DefaultDelegate::DispatchSignRequestToExtension(
event_router_->DispatchEventToExtension(
extension_id,
- base::WrapUnique(new extensions::Event(
+ base::MakeUnique<extensions::Event>(
extensions::events::CERTIFICATEPROVIDER_ON_SIGN_DIGEST_REQUESTED,
- event_name, std::move(internal_args))));
+ event_name, std::move(internal_args)));
return true;
}
@@ -194,10 +194,10 @@ bool CertificateProviderServiceFactory::ServiceIsNULLWhileTesting() const {
KeyedService* CertificateProviderServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
CertificateProviderService* const service = new CertificateProviderService();
- service->SetDelegate(base::WrapUnique(new DefaultDelegate(
+ service->SetDelegate(base::MakeUnique<DefaultDelegate>(
service,
extensions::ExtensionRegistryFactory::GetForBrowserContext(context),
- extensions::EventRouterFactory::GetForBrowserContext(context))));
+ extensions::EventRouterFactory::GetForBrowserContext(context)));
return service;
}

Powered by Google App Engine
This is Rietveld 408576698