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

Unified Diff: chrome/installer/util/beacons.cc

Issue 2341693002: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Change std::string() back to "" to fix compile Created 4 years, 3 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/installer/util/beacons.cc
diff --git a/chrome/installer/util/beacons.cc b/chrome/installer/util/beacons.cc
index dac4458e7612377b21a81a9b7974d605b8b5caf5..752736cb9b3eef302505674b6d70fffb59871a72 100644
--- a/chrome/installer/util/beacons.cc
+++ b/chrome/installer/util/beacons.cc
@@ -54,25 +54,25 @@ namespace installer_util {
std::unique_ptr<Beacon> MakeLastOsUpgradeBeacon(
bool system_install,
const AppRegistrationData& registration_data) {
- return base::WrapUnique(new Beacon(L"LastOsUpgrade", Beacon::BeaconType::LAST,
- Beacon::BeaconScope::PER_INSTALL,
- system_install, registration_data));
+ return base::MakeUnique<Beacon>(L"LastOsUpgrade", Beacon::BeaconType::LAST,
+ Beacon::BeaconScope::PER_INSTALL,
+ system_install, registration_data);
}
std::unique_ptr<Beacon> MakeLastWasDefaultBeacon(
bool system_install,
const AppRegistrationData& registration_data) {
- return base::WrapUnique(new Beacon(
- L"LastWasDefault", Beacon::BeaconType::LAST,
- Beacon::BeaconScope::PER_USER, system_install, registration_data));
+ return base::MakeUnique<Beacon>(L"LastWasDefault", Beacon::BeaconType::LAST,
+ Beacon::BeaconScope::PER_USER, system_install,
+ registration_data);
}
std::unique_ptr<Beacon> MakeFirstNotDefaultBeacon(
bool system_install,
const AppRegistrationData& registration_data) {
- return base::WrapUnique(new Beacon(
- L"FirstNotDefault", Beacon::BeaconType::FIRST,
- Beacon::BeaconScope::PER_USER, system_install, registration_data));
+ return base::MakeUnique<Beacon>(L"FirstNotDefault", Beacon::BeaconType::FIRST,
+ Beacon::BeaconScope::PER_USER, system_install,
+ registration_data);
}
// Beacon ----------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698