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

Unified Diff: ash/test/display_manager_test_api.cc

Issue 2196923002: Make ash::DisplayMode more like ui::DisplayMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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
Index: ash/test/display_manager_test_api.cc
diff --git a/ash/test/display_manager_test_api.cc b/ash/test/display_manager_test_api.cc
index b43e61a2f31914f575c4b9f004f1334701e2283e..a06ddd2167355747909ad1165c5b8fcfb3ba5f80 100644
--- a/ash/test/display_manager_test_api.cc
+++ b/ash/test/display_manager_test_api.cc
@@ -155,8 +155,9 @@ ScopedSetInternalDisplayId::~ScopedSetInternalDisplayId() {
bool SetDisplayResolution(int64_t display_id, const gfx::Size& resolution) {
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
const DisplayInfo& info = display_manager->GetDisplayInfo(display_id);
- DisplayMode mode;
- if (!GetDisplayModeForResolution(info, resolution, &mode))
+ scoped_refptr<DisplayMode> mode =
+ GetDisplayModeForResolution(info, resolution);
+ if (!mode)
return false;
return display_manager->SetDisplayMode(display_id, mode);
}

Powered by Google App Engine
This is Rietveld 408576698