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

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

Issue 10692195: Consolidate Browser Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
===================================================================
--- chrome/browser/printing/print_preview_tab_controller.cc (revision 148382)
+++ chrome/browser/printing/print_preview_tab_controller.cc (working copy)
@@ -422,7 +422,7 @@
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) {
- Browser* current_browser = Browser::CreateWithParams(
+ Browser* current_browser = new Browser(
Browser::CreateParams(Browser::TYPE_POPUP, profile));
if (!current_browser) {
NOTREACHED() << "Failed to create popup browser window";
« no previous file with comments | « chrome/browser/notifications/notification_options_menu_model.cc ('k') | chrome/browser/profiles/avatar_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698