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

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

Issue 2794263002: Remove ScopedVector from chrome/installer/ (Closed)
Patch Set: #include <utility> Created 3 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
« no previous file with comments | « chrome/installer/util/scoped_user_protocol_entry.cc ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2cef9eeeba6e467da3672f02baeeeed1cb153847..04380163e23e36f3d31d453d3dcc33e1b5f58e3e 100644
--- a/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
+++ b/chrome/installer/util/scoped_user_protocol_entry_unittest.cc
@@ -31,8 +31,8 @@ class ScopedUserProtocolEntryTest : public testing::Test {
void CreateNewRegistryValue(const base::string16& key_path,
const base::string16& name,
const base::string16& value) {
- ScopedVector<RegistryEntry> entries;
- entries.push_back(new RegistryEntry(key_path, name, value));
+ std::vector<std::unique_ptr<RegistryEntry>> entries;
+ entries.push_back(base::MakeUnique<RegistryEntry>(key_path, name, value));
ASSERT_TRUE(ShellUtil::AddRegistryEntries(HKEY_CURRENT_USER, entries));
}
« no previous file with comments | « chrome/installer/util/scoped_user_protocol_entry.cc ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698