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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc

Issue 2173033002: Make various views SetShape() methods take an unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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 | « no previous file | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
index d39003088a92636d78525186ede593f141b4635d..dfac3ccb9df96687260667119b6d559880f36475 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
@@ -354,7 +354,7 @@ bool ChromeNativeAppWindowViews::IsFullscreenOrPending() const {
void ChromeNativeAppWindowViews::UpdateShape(std::unique_ptr<SkRegion> region) {
shape_ = std::move(region);
- widget()->SetShape(shape() ? new SkRegion(*shape()) : nullptr);
+ widget()->SetShape(shape() ? base::MakeUnique<SkRegion>(*shape()) : nullptr);
widget()->OnSizeConstraintsChanged();
}
« no previous file with comments | « no previous file | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698