summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profile_manager.cc')
-rw-r--r--chrome/browser/profile_manager.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/profile_manager.cc b/chrome/browser/profile_manager.cc
index 99e09cf..d8c5099 100644
--- a/chrome/browser/profile_manager.cc
+++ b/chrome/browser/profile_manager.cc
@@ -123,12 +123,9 @@ Profile* ProfileManager::AddProfileByPath(const std::wstring& path) {
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) {