| Index: ui/aura/window.cc
|
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc
|
| index 2634eba17ef1182b2f87f76d3ac053273926a92f..8f27a6c92fce0665538d9303f06238c4c193aea0 100644
|
| --- a/ui/aura/window.cc
|
| +++ b/ui/aura/window.cc
|
| @@ -5,6 +5,7 @@
|
| #include "ui/aura/window.h"
|
|
|
| #include <algorithm>
|
| +#include <utility>
|
|
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| @@ -291,9 +292,9 @@ void Window::SetLayoutManager(LayoutManager* layout_manager) {
|
|
|
| scoped_ptr<ui::EventTargeter>
|
| Window::SetEventTargeter(scoped_ptr<ui::EventTargeter> targeter) {
|
| - scoped_ptr<ui::EventTargeter> old_targeter = targeter_.Pass();
|
| - targeter_ = targeter.Pass();
|
| - return old_targeter.Pass();
|
| + scoped_ptr<ui::EventTargeter> old_targeter = std::move(targeter_);
|
| + targeter_ = std::move(targeter);
|
| + return old_targeter;
|
| }
|
|
|
| void Window::SetBounds(const gfx::Rect& new_bounds) {
|
|
|