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

Unified Diff: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.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/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..76ecf882aab8076aa13d1a252eff31b8f84bf4e1 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;
+ WindowSizer::GetBrowserWindowBoundsAndShowState(
+ std::string(), gfx::Rect(), browser, &window_bounds, &show_state);
int width = window_bounds.width();
if (create_props->HasKey(tabs_keys::kWidthKey))
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs.cc » ('j') | chrome/browser/prefs/pref_service_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698