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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 10896: Re-do the way browser windows are shown:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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/automation/automation_provider.cc
===================================================================
--- chrome/browser/automation/automation_provider.cc (revision 5374)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -1954,7 +1954,10 @@
void AutomationProvider::OpenNewBrowserWindow(int show_command) {
// We may have no current browser windows open so don't rely on
// asking an existing browser to execute the IDC_NEWWINDOW command
- Browser::OpenNewBrowserWindow(profile_, show_command);
+ Browser* browser = Browser::Create(profile_);
+ browser->AddBlankTab(true);
+ if (show_command != SW_HIDE)
+ browser->window()->Show();
}
void AutomationProvider::GetWindowForBrowser(const IPC::Message& message,

Powered by Google App Engine
This is Rietveld 408576698