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

Unified Diff: chrome/browser/ui/browser_window_state.cc

Issue 2251263003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/browser/ui/browser_window_state.cc
diff --git a/chrome/browser/ui/browser_window_state.cc b/chrome/browser/ui/browser_window_state.cc
index 9c8179a6d6cccbbc9dd3877c55e81089a79e54bb..db4308be132bb389c0a47bf9da7a0dbb5b9c83f3 100644
--- a/chrome/browser/ui/browser_window_state.cc
+++ b/chrome/browser/ui/browser_window_state.cc
@@ -86,8 +86,7 @@ std::unique_ptr<DictionaryPrefUpdate> GetWindowPlacementDictionaryReadWrite(
DCHECK(!window_name.empty());
// A normal DictionaryPrefUpdate will suffice for non-app windows.
if (prefs->FindPreference(window_name.c_str())) {
- return base::WrapUnique(
- new DictionaryPrefUpdate(prefs, window_name.c_str()));
+ return base::MakeUnique<DictionaryPrefUpdate>(prefs, window_name.c_str());
}
return std::unique_ptr<DictionaryPrefUpdate>(
new WindowPlacementPrefUpdate(prefs, window_name));
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.cc ('k') | chrome/browser/ui/cocoa/extensions/extension_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698