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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer.cc

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: mac2 Created 4 years, 11 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: chrome/browser/ui/window_sizer/window_sizer.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer.cc b/chrome/browser/ui/window_sizer/window_sizer.cc
index d731a96eab85624cc1d12bd1b4f8068c9c9c284e..8f00e028a5bb140a41ead8ccfc5ef394f8c740b5 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer.cc
@@ -110,16 +110,15 @@ class DefaultStateProvider : public WindowSizer::StateProvider {
if (browser_ && browser_->window()) {
window = browser_->window();
} else {
- // This code is only ran on the native desktop (on the ash
+ // This code is only run on the native desktop (on the ash
// desktop, GetTabbedBrowserBoundsAsh should take over below
// before this is reached). TODO(gab): This code should go in a
// native desktop specific window sizer as part of fixing
// crbug.com/175812.
- const BrowserList* native_browser_list =
- BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE);
+ const BrowserList* browser_list = BrowserList::GetInstance();
for (BrowserList::const_reverse_iterator it =
- native_browser_list->begin_last_active();
- it != native_browser_list->end_last_active(); ++it) {
+ browser_list->begin_last_active();
+ it != browser_list->end_last_active(); ++it) {
Browser* last_active = *it;
if (last_active && last_active->is_type_tabbed()) {
window = last_active->window();

Powered by Google App Engine
This is Rietveld 408576698