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

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

Issue 1878313003: Convert //chrome/installer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert decompress.cc in mini_installer. Created 4 years, 8 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 992b8373522d3712ac21efc628aa6dbda0b30a80..cae95c37c368a73188bc4860ed678697f5e581ee 100644
--- a/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
+++ b/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
@@ -4,6 +4,7 @@
#include "chrome/installer/util/scoped_user_protocol_entry.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
#include "base/test/test_reg_util_win.h"
#include "base/win/registry.h"
@@ -36,14 +37,14 @@ class ScopedUserProtocolEntryTest : public testing::Test {
void CreateScopedUserProtocolEntryAndVerifyRegistryValue(
const base::string16& expected_entry_value) {
- entry_ = make_scoped_ptr(new ScopedUserProtocolEntry());
+ entry_ = base::WrapUnique(new ScopedUserProtocolEntry());
ASSERT_TRUE(RegistryEntry(kProtocolEntryKeyPath, kProtocolEntryName,
expected_entry_value)
.ExistsInRegistry(RegistryEntry::LOOK_IN_HKCU));
}
registry_util::RegistryOverrideManager registry_overrides_manager_;
- scoped_ptr<ScopedUserProtocolEntry> entry_;
+ std::unique_ptr<ScopedUserProtocolEntry> entry_;
};
const wchar_t ScopedUserProtocolEntryTest::kProtocolEntryKeyPath[] =
« no previous file with comments | « chrome/installer/util/registry_key_backup_unittest.cc ('k') | chrome/installer/util/set_reg_value_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698