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

Unified Diff: chrome/browser/ui/browser_mac.cc

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 | « chrome/browser/ui/browser_list_observer.h ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_mac.cc
===================================================================
--- chrome/browser/ui/browser_mac.cc (revision 148382)
+++ chrome/browser/ui/browser_mac.cc (working copy)
@@ -11,67 +11,67 @@
namespace chrome {
void OpenAboutWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowAboutChrome(browser);
browser->window()->Show();
}
void OpenHistoryWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowHistory(browser);
browser->window()->Show();
}
void OpenDownloadsWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowDownloads(browser);
browser->window()->Show();
}
void OpenHelpWindow(Profile* profile, HelpSource source) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowHelp(browser, source);
browser->window()->Show();
}
void OpenOptionsWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowSettings(browser);
browser->window()->Show();
}
void OpenSyncSetupWindow(Profile* profile, SyncPromoUI::Source source) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowSyncSetup(browser, source);
browser->window()->Show();
}
void OpenClearBrowsingDataDialogWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowClearBrowsingDataDialog(browser);
browser->window()->Show();
}
void OpenImportSettingsDialogWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowImportDialog(browser);
browser->window()->Show();
}
void OpenInstantConfirmDialogWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowInstantConfirmDialog(browser);
browser->window()->Show();
}
void OpenBookmarkManagerWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowBookmarkManager(browser);
browser->window()->Show();
}
void OpenExtensionsWindow(Profile* profile) {
- Browser* browser = Browser::Create(profile);
+ Browser* browser = new Browser(Browser::CreateParams(profile));
ShowExtensions(browser);
browser->window()->Show();
}
« no previous file with comments | « chrome/browser/ui/browser_list_observer.h ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698