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

Unified Diff: chrome/installer/util/scoped_user_protocol_entry.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
Index: chrome/installer/util/scoped_user_protocol_entry.cc
diff --git a/chrome/installer/util/scoped_user_protocol_entry.cc b/chrome/installer/util/scoped_user_protocol_entry.cc
index 3aa7f0211d40b6d3139a971e1a8f6500694f7ff5..f806217b65d6b4a2f03148b106591985ed63e2b3 100644
--- a/chrome/installer/util/scoped_user_protocol_entry.cc
+++ b/chrome/installer/util/scoped_user_protocol_entry.cc
@@ -5,13 +5,14 @@
#include "chrome/installer/util/scoped_user_protocol_entry.h"
#include "base/files/file_path.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
#include "base/win/registry.h"
#include "chrome/installer/util/registry_entry.h"
#include "chrome/installer/util/shell_util.h"
ScopedUserProtocolEntry::ScopedUserProtocolEntry(const wchar_t* protocol) {
- entries_.push_back(new RegistryEntry(
+ entries_.push_back(base::MakeUnique<RegistryEntry>(
base::FilePath(ShellUtil::kRegClasses).Append(protocol).value(),
ShellUtil::kRegUrlProtocol, base::string16()));
if (!entries_.back()->KeyExistsInRegistry(RegistryEntry::LOOK_IN_HKCU) &&
« no previous file with comments | « chrome/installer/util/scoped_user_protocol_entry.h ('k') | chrome/installer/util/scoped_user_protocol_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698