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

Unified Diff: chrome/browser/media/desktop_media_list_ash.cc

Issue 283573002: Place primary screen before secondary screens in picker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@output-order-fix
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/desktop_media_list_ash.cc
diff --git a/chrome/browser/media/desktop_media_list_ash.cc b/chrome/browser/media/desktop_media_list_ash.cc
index ac88e0d6710952468270510ed64e2cc96f406148..9db39ecae227cd135ec4e95b335f62bce4f6430e 100644
--- a/chrome/browser/media/desktop_media_list_ash.cc
+++ b/chrome/browser/media/desktop_media_list_ash.cc
@@ -180,7 +180,10 @@ void DesktopMediaListAsh::EnumerateSources(
if (source_types_ & SCREENS) {
SourceDescription screen_source(
content::DesktopMediaID::RegisterAuraWindow(*iter), (*iter)->title());
- sources->push_back(screen_source);
+ if (*iter == ash::Shell::GetPrimaryRootWindow())
+ sources->insert(sources->begin(), screen_source);
Sergey Ulanov 2014/05/19 18:59:33 nit: add {} here and for the else case.
+ else
+ sources->push_back(screen_source);
CaptureThumbnail(screen_source.id, *iter);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698