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

Unified Diff: ash/display/display_manager.cc

Issue 1819533002: Convert ScopedVector<DisplayPlacement> to std::vector<DisplayPlacement> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jsonrefactor
Patch Set: Created 4 years, 9 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/display/display_layout_store.cc ('k') | ash/display/display_manager_unittest.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 25dfc069c8f4926f742fcff63cfbeb2a1cfe526b..06f956cf5ff91945e2c3c8c11db326d7d294bab4 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -1326,11 +1326,11 @@ void DisplayManager::ApplyDisplayLayout(const DisplayLayout& layout,
while (parents.size()) {
int64_t parent_id = *parents.begin();
parents.erase(parent_id);
- for (const DisplayPlacement* placement : layout.placement_list) {
- if (placement->parent_display_id == parent_id) {
- if (ApplyDisplayPlacement(*placement, display_list) && updated_ids)
- updated_ids->push_back(placement->display_id);
- parents.insert(placement->display_id);
+ for (const DisplayPlacement& placement : layout.placement_list) {
+ if (placement.parent_display_id == parent_id) {
+ if (ApplyDisplayPlacement(placement, display_list) && updated_ids)
+ updated_ids->push_back(placement.display_id);
+ parents.insert(placement.display_id);
}
}
}
« no previous file with comments | « ash/display/display_layout_store.cc ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698