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

Unified Diff: chrome/browser/app_controller_mac.mm

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
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
===================================================================
--- chrome/browser/app_controller_mac.mm (revision 148382)
+++ chrome/browser/app_controller_mac.mm (working copy)
@@ -675,7 +675,7 @@
// downloads page if the user chooses to wait.
Browser* browser = browser::FindBrowserWithProfile(profiles[i]);
if (!browser) {
- browser = Browser::Create(profiles[i]);
+ browser = new Browser(Browser::CreateParams(profiles[i]));
browser->window()->Show();
}
DCHECK(browser);
@@ -1093,7 +1093,7 @@
Browser* browser = browser::GetLastActiveBrowser();
// if no browser window exists then create one with no tabs to be filled in
if (!browser) {
- browser = Browser::Create([self lastProfile]);
+ browser = new Browser(Browser::CreateParams([self lastProfile]));
browser->window()->Show();
}
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698