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

Unified Diff: components/proximity_auth/webui/proximity_auth_webui_handler.cc

Issue 2250023005: 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
« no previous file with comments | « components/proximity_auth/unlock_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/webui/proximity_auth_webui_handler.cc
diff --git a/components/proximity_auth/webui/proximity_auth_webui_handler.cc b/components/proximity_auth/webui/proximity_auth_webui_handler.cc
index 41d391f71f2f423215e5709bf72ad79a9a22a5ac..84e99e1d1a598c26748650cd786ba6c8f606273c 100644
--- a/components/proximity_auth/webui/proximity_auth_webui_handler.cc
+++ b/components/proximity_auth/webui/proximity_auth_webui_handler.cc
@@ -431,7 +431,7 @@ ProximityAuthWebUIHandler::GetEnrollmentStateDictionary() {
CryptAuthEnrollmentManager* enrollment_manager =
proximity_auth_client_->GetCryptAuthEnrollmentManager();
if (!enrollment_manager)
- return base::WrapUnique(new base::DictionaryValue());
+ return base::MakeUnique<base::DictionaryValue>();
return CreateSyncStateDictionary(
enrollment_manager->GetLastEnrollmentTime().ToJsTime(),
@@ -445,7 +445,7 @@ ProximityAuthWebUIHandler::GetDeviceSyncStateDictionary() {
CryptAuthDeviceManager* device_manager =
proximity_auth_client_->GetCryptAuthDeviceManager();
if (!device_manager)
- return base::WrapUnique(new base::DictionaryValue());
+ return base::MakeUnique<base::DictionaryValue>();
return CreateSyncStateDictionary(
device_manager->GetLastSyncTime().ToJsTime(),
« no previous file with comments | « components/proximity_auth/unlock_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698