Don't assume gfx::Screen::GetNumDisplays() == GetAllDisplays().size().
commitdbd94f7916ed11a14deddaa53db6f84ce5fd1b57
authorreillyg <reillyg@chromium.org>
Mon, 3 Nov 2014 06:40:26 +0000 (2 22:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Nov 2014 06:40:49 +0000 (3 06:40 +0000)
treef4b3e1bd884007fc4a41bec7572212baece12f20
parent1870b34b26ad58d36845e8932959f06350e1543c
Don't assume gfx::Screen::GetNumDisplays() == GetAllDisplays().size().

It is safer to use the C++11 foreach operator to iterate over this
vector. On Windows gfx::ScreenWin gets the the display count from a
different place from the display list.

BUG=427931

Review URL: https://codereview.chromium.org/689223002

Cr-Commit-Position: refs/heads/master@{#302416}
extensions/browser/api/system_display/display_info_provider.cc