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

Unified Diff: chrome/browser/extensions/api/tabs/tabs.cc

Issue 11072002: Combined window positioning and show state determiniation in the WindowSizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed more build issues Created 8 years, 2 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/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 &&

Powered by Google App Engine
This is Rietveld 408576698