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

Unified Diff: ui/display/chromeos/test/test_native_display_delegate.cc

Issue 796263002: Remove synchronous GetDisplays() and Configure() from NativeDisplayDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor5
Patch Set: Removed deprecated calls from TestNativeDisplayDelegate and update the ExternalControl test Created 6 years 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: 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 ffcf2f32e47d611fc35c31fa608ed06bc42da3e2..0da2e1190f1ab0c6853dfb7aee1e81190924073d 100644
--- a/ui/display/chromeos/test/test_native_display_delegate.cc
+++ b/ui/display/chromeos/test/test_native_display_delegate.cc
@@ -56,18 +56,13 @@ void TestNativeDisplayDelegate::ForceDPMSOn() {
log_->AppendAction(kForceDPMS);
}
-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));
+ base::Bind(callback, outputs_));
} else {
- callback.Run(result);
+ callback.Run(outputs_);
}
}
« no previous file with comments | « ui/display/chromeos/test/test_native_display_delegate.h ('k') | ui/display/chromeos/x11/native_display_delegate_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698