Index: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc |
diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc |
index 74655c04483c7c12fdc42a9960e6d59901ed74be..3a0803d87cf9b0294aa0f76ae835f8caea0b2117 100644 |
--- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc |
+++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc |
@@ -488,8 +488,9 @@ bool CreateOffscreenTabFunction::RunImpl() { |
return false; |
} |
- WindowSizer::GetBrowserWindowBounds( |
- std::string(), gfx::Rect(), browser, &window_bounds); |
+ ui::WindowShowState show_state = ui::SHOW_STATE_DEFAULT; |
+ WindowSizer::GetBrowserWindowBoundsAndShowState( |
+ std::string(), gfx::Rect(), browser, &window_bounds, &show_state); |
int width = window_bounds.width(); |
if (create_props->HasKey(tabs_keys::kWidthKey)) |