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

Unified Diff: chrome/browser/profile_manager.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/profile_manager.cc
===================================================================
--- chrome/browser/profile_manager.cc (revision 5374)
+++ chrome/browser/profile_manager.cc (working copy)
@@ -123,12 +123,9 @@
void ProfileManager::NewWindowWithProfile(Profile* profile) {
DCHECK(profile);
-
- Browser* new_browser = new Browser(gfx::Rect(), SW_SHOWNORMAL, profile,
- BrowserType::TABBED_BROWSER, L"");
- new_browser->AddTabWithURL(GURL(), GURL(), PageTransition::TYPED, true,
- NULL);
- new_browser->Show();
+ Browser* browser = Browser::Create(profile);
+ browser->AddTabWithURL(GURL(), GURL(), PageTransition::TYPED, true, NULL);
+ browser->window()->Show();
}
Profile* ProfileManager::AddProfileByID(const std::wstring& id) {

Powered by Google App Engine
This is Rietveld 408576698