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

Unified Diff: chrome/browser/printing/print_preview_tab_controller.cc

Issue 9968078: Honor window size for chrome.windows.create when parent window is maximized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extraneous logging Created 8 years, 9 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/printing/print_preview_tab_controller.cc
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index e35f1bfa64354b34cea261e652bdb7c2a6178cf5..6dc23f6c0876fa33b864690a566524387edbfca7 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -414,7 +414,8 @@ TabContentsWrapper* PrintPreviewTabController::CreatePrintPreviewTab(
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) {
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
- current_browser = Browser::CreateForType(Browser::TYPE_POPUP, profile);
+ current_browser = Browser::CreateWithParams(
+ Browser::CreateParams(Browser::TYPE_POPUP, profile));
if (!current_browser) {
NOTREACHED() << "Failed to create popup browser window";
return NULL;

Powered by Google App Engine
This is Rietveld 408576698