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

Unified Diff: services/ui/ws/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
Index: services/ui/ws/display_manager.cc
diff --git a/services/ui/ws/display_manager.cc b/services/ui/ws/display_manager.cc
index fdfcee06f44e92b6fff3650021be695c6db76f08..fadbfe9a5510a604bbfb2be40e159cf51f732dfd 100644
--- a/services/ui/ws/display_manager.cc
+++ b/services/ui/ws/display_manager.cc
@@ -61,7 +61,7 @@ void DisplayManager::DestroyDisplay(Display* display) {
// If we have no more roots left, let the app know so it can terminate.
// TODO(sky): move to delegate/observer.
- if (!displays_.size() && !pending_displays_.size())
+ if (displays_.empty() && pending_displays_.empty())
delegate_->OnNoMoreDisplays();
}
« no previous file with comments | « remoting/client/plugin/pepper_video_renderer_3d.cc ('k') | storage/browser/fileapi/file_system_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698