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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 2251263003: 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/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 904de32c1c20ba2169a61f01df6fcb5297f488c8..196200a4f3d6c9bcabe52cb7febbaacd528214a6 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -173,8 +173,8 @@ void BluetoothDeviceConnectError(
std::unique_ptr<ash::CastConfigDelegate> CreateCastConfigDelegate() {
if (CastConfigDelegateMediaRouter::IsEnabled())
- return base::WrapUnique(new CastConfigDelegateMediaRouter());
- return base::WrapUnique(new CastConfigDelegateChromeos());
+ return base::MakeUnique<CastConfigDelegateMediaRouter>();
+ return base::MakeUnique<CastConfigDelegateChromeos>();
}
void ShowSettingsSubPageForActiveUser(const std::string& sub_page) {

Powered by Google App Engine
This is Rietveld 408576698