Commit 89585d36 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[ozone/wayland] Move away from base::Bind

BUG=714018

Change-Id: I9d846815404f3154639cf6c2a2fcff98ee91cd0c
Reviewed-on: https://chromium-review.googlesource.com/995512Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#548063}
parent 6132bb52
......@@ -544,8 +544,8 @@ bool FakeServer::Start(uint32_t shell_version) {
(void)server_fd.release();
base::Thread::Options options;
options.message_pump_factory =
base::Bind(&FakeServer::CreateMessagePump, base::Unretained(this));
options.message_pump_factory = base::BindRepeating(
&FakeServer::CreateMessagePump, base::Unretained(this));
if (!base::Thread::StartWithOptions(options))
return false;
......
......@@ -254,7 +254,7 @@ void WaylandConnection::Capabilities(void* data,
return;
}
connection->pointer_ = std::make_unique<WaylandPointer>(
pointer, base::Bind(&WaylandConnection::DispatchUiEvent,
pointer, base::BindRepeating(&WaylandConnection::DispatchUiEvent,
base::Unretained(connection)));
connection->pointer_->set_connection(connection);
}
......@@ -269,7 +269,7 @@ void WaylandConnection::Capabilities(void* data,
return;
}
connection->keyboard_ = std::make_unique<WaylandKeyboard>(
keyboard, base::Bind(&WaylandConnection::DispatchUiEvent,
keyboard, base::BindRepeating(&WaylandConnection::DispatchUiEvent,
base::Unretained(connection)));
connection->keyboard_->set_connection(connection);
}
......@@ -284,7 +284,7 @@ void WaylandConnection::Capabilities(void* data,
return;
}
connection->touch_ = std::make_unique<WaylandTouch>(
touch, base::Bind(&WaylandConnection::DispatchUiEvent,
touch, base::BindRepeating(&WaylandConnection::DispatchUiEvent,
base::Unretained(connection)));
connection->touch_->set_connection(connection);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment