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

Unified Diff: chrome/installer/util/scoped_user_protocol_entry_unittest.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/scoped_user_protocol_entry_unittest.cc
diff --git a/chrome/installer/util/scoped_user_protocol_entry_unittest.cc b/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
index bf308376c156898f94f75e70c598ff1f6acc57c0..b7e3eea1914c57c762ebe5900707ee588cf2a8a2 100644
--- a/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
+++ b/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
@@ -37,7 +37,7 @@ class ScopedUserProtocolEntryTest : public testing::Test {
void CreateScopedUserProtocolEntryAndVerifyRegistryValue(
const base::string16& expected_entry_value) {
- entry_ = base::WrapUnique(new ScopedUserProtocolEntry(L"http"));
+ entry_ = base::MakeUnique<ScopedUserProtocolEntry>(L"http");
ASSERT_TRUE(RegistryEntry(kProtocolEntryKeyPath, kProtocolEntryName,
expected_entry_value)
.ExistsInRegistry(RegistryEntry::LOOK_IN_HKCU));
« no previous file with comments | « chrome/installer/util/lzma_file_allocator_unittest.cc ('k') | chrome/renderer/extensions/extension_localization_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698