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

Unified Diff: mash/wm/window_manager_impl.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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
« no previous file with comments | « mash/wm/window_manager_apptest.cc ('k') | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager_impl.cc
diff --git a/mash/wm/window_manager_impl.cc b/mash/wm/window_manager_impl.cc
index eaa559d264106b5f280b2deffd86f28711ce9971..bc664a9bd55b02823decfa7503088f60d90a17f8 100644
--- a/mash/wm/window_manager_impl.cc
+++ b/mash/wm/window_manager_impl.cc
@@ -5,6 +5,7 @@
#include "mash/wm/window_manager_impl.h"
#include <stdint.h>
+#include <utility>
#include "components/mus/common/types.h"
#include "components/mus/public/cpp/property_type_converters.h"
@@ -115,7 +116,7 @@ void WindowManagerImpl::OpenWindow(
mojom::Container container = GetRequestedContainer(child_window);
state_->GetWindowForContainer(container)->AddChild(child_window);
- child_window->Embed(client.Pass());
+ child_window->Embed(std::move(client));
if (provide_non_client_frame) {
// NonClientFrameController deletes itself when |child_window| is destroyed.
@@ -153,7 +154,7 @@ void WindowManagerImpl::GetConfig(const GetConfigCallback& callback) {
config->max_title_bar_button_width =
NonClientFrameController::GetMaxTitleBarButtonWidth();
- callback.Run(config.Pass());
+ callback.Run(std::move(config));
}
bool WindowManagerImpl::OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) {
« no previous file with comments | « mash/wm/window_manager_apptest.cc ('k') | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698