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

Unified Diff: ash/display/display_manager.cc

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index 1bc2c479befce37f27d6a9f0d2bb3fc177e126f8..bed4ca47346aa40e280d4582272fafcbb3a1c4c4 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -575,7 +575,7 @@ void DisplayManager::OnNativeDisplaysChanged(
new_mode.ui_scale = iter->configured_ui_scale();
const std::vector<DisplayMode>& display_modes = iter->display_modes();
// This is empty the displays are initialized from InitFromCommandLine.
- if (!display_modes.size())
+ if (display_modes.empty())
continue;
auto display_modes_iter = FindDisplayMode(*iter, new_mode);
// Update the actual resolution selected as the resolution request may fail.
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698