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

Unified Diff: chrome/browser/ui/views/aura/chrome_shell_delegate.cc

Issue 8938007: Makes creating a new browser from the launcher use default profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/aura/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/views/aura/chrome_shell_delegate.cc b/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
index fdfee855693203798230df1548913b8f6dbbb09a..7750f8cc94c6964421c4316e8e17b0283682337f 100644
--- a/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
@@ -45,8 +45,7 @@ bool ChromeShellDelegate::ShouldCreateLauncherItemForBrowser(
}
void ChromeShellDelegate::CreateNewWindow() {
- Browser* browser = Browser::Create(
- ProfileManager::GetDefaultProfile()->GetOriginalProfile());
+ Browser* browser = Browser::Create(ProfileManager::GetDefaultProfile());
browser->AddSelectedTabWithURL(GURL(), content::PAGE_TRANSITION_START_PAGE);
browser->window()->Show();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698