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

Unified Diff: ash/display/extended_mouse_warp_controller.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_manager_unittest.cc ('k') | ash/display/extended_mouse_warp_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/extended_mouse_warp_controller.cc
diff --git a/ash/display/extended_mouse_warp_controller.cc b/ash/display/extended_mouse_warp_controller.cc
index 9fe1254179728ecbf0c0cdd335bceaa44905fcf0..879b04baa1234c778f7c3dfcd252ea5c9b6052a3 100644
--- a/ash/display/extended_mouse_warp_controller.cc
+++ b/ash/display/extended_mouse_warp_controller.cc
@@ -80,13 +80,13 @@ ExtendedMouseWarpController::ExtendedMouseWarpController(
Shell::GetInstance()->display_manager();
// TODO(oshima): Use ComputeBondary instead and try all combinations.
- for (const auto* placement :
+ for (const auto& placement :
display_manager->GetCurrentDisplayLayout().placement_list) {
- DisplayPlacement::Position position = placement->position;
+ DisplayPlacement::Position position = placement.position;
const gfx::Display& a =
- display_manager->GetDisplayForId(placement->parent_display_id);
+ display_manager->GetDisplayForId(placement.parent_display_id);
const gfx::Display& b =
- display_manager->GetDisplayForId(placement->display_id);
+ display_manager->GetDisplayForId(placement.display_id);
if (position == DisplayPlacement::TOP ||
position == DisplayPlacement::BOTTOM) {
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ash/display/extended_mouse_warp_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698