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

Unified Diff: ui/display/mac/screen_mac.mm

Issue 2126433002: Use container::back() and container::pop_back() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pre-increment Created 4 years, 5 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: ui/display/mac/screen_mac.mm
diff --git a/ui/display/mac/screen_mac.mm b/ui/display/mac/screen_mac.mm
index fa1edd29bea5f2ebbb5a480adc85d5a4d7871193..4621dfabc766680ad8cf21748b11d791ba9678e8 100644
--- a/ui/display/mac/screen_mac.mm
+++ b/ui/display/mac/screen_mac.mm
@@ -262,10 +262,8 @@ class ScreenMac : public Screen {
}
}
- if (!displays.size())
- return std::vector<Display>(1, GetPrimaryDisplay());
-
- return displays;
+ return displays.empty() ? std::vector<Display>(1, GetPrimaryDisplay())
+ : displays;
}
// The displays currently attached to the device.
« no previous file with comments | « ui/compositor/layer_animator_collection.cc ('k') | ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698