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

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

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/views/apps/chrome_native_app_window_views_aura.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
index ecb8c7019dbe2cedb91ec8474082532dd1f795f1..d956010f7efaace5240fe82e30326036ac1fff76 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h"
+#include <utility>
+
#include "apps/ui/views/app_window_frame_view.h"
#include "ash/ash_constants.h"
#include "ash/frame/custom_frame_view_ash.h"
@@ -319,9 +321,8 @@ ChromeNativeAppWindowViewsAura::CreateNonClientFrameView(
// Set the delegate now because CustomFrameViewAsh sets the
// WindowStateDelegate if one is not already set.
ash::wm::GetWindowState(GetNativeWindow())
- ->SetDelegate(
- scoped_ptr<ash::wm::WindowStateDelegate>(
- new NativeAppWindowStateDelegate(app_window(), this)).Pass());
+ ->SetDelegate(scoped_ptr<ash::wm::WindowStateDelegate>(
+ new NativeAppWindowStateDelegate(app_window(), this)));
if (IsFrameless())
return CreateNonStandardAppFrame();
@@ -378,7 +379,7 @@ void ChromeNativeAppWindowViewsAura::SetFullscreen(int fullscreen_types) {
void ChromeNativeAppWindowViewsAura::UpdateShape(scoped_ptr<SkRegion> region) {
bool had_shape = !!shape();
- ChromeNativeAppWindowViews::UpdateShape(region.Pass());
+ ChromeNativeAppWindowViews::UpdateShape(std::move(region));
aura::Window* native_window = widget()->GetNativeWindow();
if (shape() && !had_shape) {

Powered by Google App Engine
This is Rietveld 408576698