Index: chrome/browser/extensions/api/tabs/tabs.cc |
diff --git a/chrome/browser/extensions/api/tabs/tabs.cc b/chrome/browser/extensions/api/tabs/tabs.cc |
index 20053f91cd7c6a74baf43963377a03fbb718437e..bcafa401a8dbef2303618b3608c3b36992d05956 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs.cc |
@@ -531,9 +531,12 @@ bool CreateWindowFunction::RunImpl() { |
// NOTE(rafaelw): It's ok if GetCurrentBrowser() returns NULL here. |
// GetBrowserWindowBounds will default to saved "default" values for |
// the app. |
- WindowSizer::GetBrowserWindowBounds(std::string(), gfx::Rect(), |
- GetCurrentBrowser(), |
- &window_bounds); |
+ ui::WindowShowState show_state; |
+ WindowSizer::GetBrowserWindowBoundsAndShowState(std::string(), |
+ gfx::Rect(), |
+ GetCurrentBrowser(), |
+ &window_bounds, |
+ &show_state); |
} |
if (Browser::TYPE_PANEL == window_type && |