| Index: ui/display/chromeos/test/test_native_display_delegate.cc
|
| diff --git a/ui/display/chromeos/test/test_native_display_delegate.cc b/ui/display/chromeos/test/test_native_display_delegate.cc
|
| index f7371056a3bad8573e2b702649fe188a11d03ef1..ffcf2f32e47d611fc35c31fa608ed06bc42da3e2 100644
|
| --- a/ui/display/chromeos/test/test_native_display_delegate.cc
|
| +++ b/ui/display/chromeos/test/test_native_display_delegate.cc
|
| @@ -60,6 +60,17 @@ std::vector<DisplaySnapshot*> TestNativeDisplayDelegate::GetDisplays() {
|
| return outputs_;
|
| }
|
|
|
| +void TestNativeDisplayDelegate::GetDisplays(
|
| + const GetDisplaysCallback& callback) {
|
| + auto result = GetDisplays();
|
| + if (run_async_) {
|
| + base::MessageLoop::current()->PostTask(FROM_HERE,
|
| + base::Bind(callback, result));
|
| + } else {
|
| + callback.Run(result);
|
| + }
|
| +}
|
| +
|
| void TestNativeDisplayDelegate::AddMode(const DisplaySnapshot& output,
|
| const DisplayMode* mode) {
|
| log_->AppendAction(GetAddOutputModeAction(output, mode));
|
|
|