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

Side by Side Diff: chromeos/dbus/blocking_method_caller.cc

Issue 1556773002: Convert Pass()→std::move() in //chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « chromeos/cryptohome/homedir_methods_unittest.cc ('k') | chromeos/dbus/dbus_thread_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/blocking_method_caller.h" 5 #include "chromeos/dbus/blocking_method_caller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/task_runner.h" 10 #include "base/task_runner.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bus_->GetDBusTaskRunner()->PostTask( 53 bus_->GetDBusTaskRunner()->PostTask(
54 FROM_HERE, 54 FROM_HERE,
55 base::Bind(&CallMethodAndBlockInternal, 55 base::Bind(&CallMethodAndBlockInternal,
56 &response, 56 &response,
57 base::Owned(signaler), 57 base::Owned(signaler),
58 base::Unretained(proxy_), 58 base::Unretained(proxy_),
59 method_call)); 59 method_call));
60 // http://crbug.com/125360 60 // http://crbug.com/125360
61 base::ThreadRestrictions::ScopedAllowWait allow_wait; 61 base::ThreadRestrictions::ScopedAllowWait allow_wait;
62 on_blocking_method_call_.Wait(); 62 on_blocking_method_call_.Wait();
63 return response.Pass(); 63 return response;
64 } 64 }
65 65
66 } // namespace chromeos 66 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/cryptohome/homedir_methods_unittest.cc ('k') | chromeos/dbus/dbus_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698