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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/browser/ui/views/collected_cookies_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index 1bb591c6857ddd0d44239a94101381539ba9ce35..273e3f5a1753b6fb004a1d7fe045776b378f83a9 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -4,7 +4,8 @@
#include "chrome/browser/ui/views/chrome_views_delegate.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
@@ -194,7 +195,7 @@ void ChromeViewsDelegate::SaveWindowPlacement(const views::Widget* window,
if (!prefs)
return;
- scoped_ptr<DictionaryPrefUpdate> pref_update =
+ std::unique_ptr<DictionaryPrefUpdate> pref_update =
chrome::GetWindowPlacementDictionaryReadWrite(window_name, prefs);
base::DictionaryValue* window_preferences = pref_update->Get();
window_preferences->SetInteger("left", bounds.x());
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/browser/ui/views/collected_cookies_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698