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

Unified Diff: services/shell/public/cpp/lib/connection_impl.cc

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.h ('k') | services/shell/public/cpp/shell_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/connection_impl.cc
diff --git a/services/shell/public/cpp/lib/connection_impl.cc b/services/shell/public/cpp/lib/connection_impl.cc
index 0be3d303dbdf9c845279ad47799c16eec868eb5f..3a612e05fe0b6baf497c077dc90816066b8a783e 100644
--- a/services/shell/public/cpp/lib/connection_impl.cc
+++ b/services/shell/public/cpp/lib/connection_impl.cc
@@ -85,7 +85,7 @@ uint32_t ConnectionImpl::GetRemoteInstanceID() const {
}
void ConnectionImpl::AddConnectionCompletedClosure(
- const mojo::Closure& callback) {
+ const base::Closure& callback) {
if (IsPending())
connection_completed_callbacks_.push_back(callback);
else
@@ -126,7 +126,7 @@ void ConnectionImpl::OnConnectionCompleted(shell::mojom::ConnectResult result,
State::CONNECTED : State::DISCONNECTED;
remote_id_ = target_application_id;
remote_.set_user_id(target_user_id);
- std::vector<mojo::Closure> callbacks;
+ std::vector<base::Closure> callbacks;
callbacks.swap(connection_completed_callbacks_);
for (auto callback : callbacks)
callback.Run();
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.h ('k') | services/shell/public/cpp/shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698