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

Unified Diff: ui/views/win/fullscreen_handler.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/views/widget/window_reorderer_unittest.cc ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/fullscreen_handler.cc
diff --git a/ui/views/win/fullscreen_handler.cc b/ui/views/win/fullscreen_handler.cc
index 0529f6e37d8f052ca9ad3ad545f8d42d87416830..c805c29da62a7abbd9289361572ca64a21c07274 100644
--- a/ui/views/win/fullscreen_handler.cc
+++ b/ui/views/win/fullscreen_handler.cc
@@ -4,8 +4,9 @@
#include "ui/views/win/fullscreen_handler.h"
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/win/win_util.h"
#include "ui/base/win/shell.h"
#include "ui/gfx/geometry/rect.h"
@@ -36,7 +37,7 @@ gfx::Rect FullscreenHandler::GetRestoreBounds() const {
// FullscreenHandler, private:
void FullscreenHandler::SetFullscreenImpl(bool fullscreen) {
- scoped_ptr<ScopedFullscreenVisibility> visibility;
+ std::unique_ptr<ScopedFullscreenVisibility> visibility;
// With Aero enabled disabling the visibility causes the window to disappear
// for several frames, which looks worse than doing other updates
« no previous file with comments | « ui/views/widget/window_reorderer_unittest.cc ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698