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

Unified Diff: chrome/browser/browser.cc

Issue 329004: Mac: enable History, Downloads, and Open Location... with no windows open. (Closed)
Patch Set: Merged ToT. Created 11 years, 2 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/browser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 619e85575129ae68cd0f9194b9ed4b31ea6f8bf3..a2a0e96bef41d9789cf05146df408139c6cb37c9 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -332,6 +332,20 @@ void Browser::OpenApplicationWindow(Profile* profile, const GURL& url) {
#if defined(OS_MACOSX)
// static
+void Browser::OpenHistoryWindow(Profile* profile) {
+ Browser* browser = Browser::Create(profile);
+ browser->ShowHistoryTab();
+ browser->window()->Show();
+}
+
+// static
+void Browser::OpenDownloadsWindow(Profile* profile) {
+ Browser* browser = Browser::Create(profile);
+ browser->ShowDownloadsTab();
+ browser->window()->Show();
+}
+
+// static
void Browser::OpenHelpWindow(Profile* profile) {
Browser* browser = Browser::Create(profile);
browser->OpenHelpTab();
« no previous file with comments | « chrome/browser/browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698