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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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
« no previous file with comments | « chrome/browser/sessions/tab_loader.cc ('k') | chrome/browser/signin/chrome_proximity_auth_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index 6c889d3c69aa1456e54a98d444387ea11a1fc7e8..27610f8c3fdce28d5aaff8e536f4de39d4c0bf4e 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -380,8 +380,8 @@ class OpenSystemSettingsHelper {
// Helper function to create a registry watcher for a given |key_path|. Do
// nothing on initialization failure.
void AddRegistryKeyWatcher(const wchar_t* key_path) {
- auto reg_key = base::WrapUnique(
- new base::win::RegKey(HKEY_CURRENT_USER, key_path, KEY_NOTIFY));
+ auto reg_key = base::MakeUnique<base::win::RegKey>(HKEY_CURRENT_USER,
+ key_path, KEY_NOTIFY);
if (reg_key->Valid() &&
reg_key->StartWatching(
« no previous file with comments | « chrome/browser/sessions/tab_loader.cc ('k') | chrome/browser/signin/chrome_proximity_auth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698