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

Unified Diff: services/window_manager/view_target.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
Index: services/window_manager/view_target.cc
diff --git a/services/window_manager/view_target.cc b/services/window_manager/view_target.cc
index 700515e34f8a425c4a019168db34f383b5d33188..e73dd8353f8f2ec293273453be830ae0fa25f48a 100644
--- a/services/window_manager/view_target.cc
+++ b/services/window_manager/view_target.cc
@@ -91,7 +91,7 @@ scoped_ptr<ViewTargeter> ViewTarget::SetEventTargeter(
scoped_ptr<ViewTargeter> targeter) {
scoped_ptr<ViewTargeter> old_targeter = targeter_.Pass();
targeter_ = targeter.Pass();
- return old_targeter.Pass();
+ return old_targeter;
}
bool ViewTarget::CanAcceptEvent(const ui::Event& event) {
« no previous file with comments | « services/view_manager/view_manager_service_impl.cc ('k') | shell/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698