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

Unified Diff: chrome/browser/browser.cc

Issue 661019: Add command line option to use a tabbed bookmark manager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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') | chrome/browser/dom_ui/bookmarks_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
===================================================================
--- chrome/browser/browser.cc (revision 40140)
+++ chrome/browser/browser.cc (working copy)
@@ -1289,7 +1289,12 @@
void Browser::OpenBookmarkManager() {
UserMetrics::RecordAction("ShowBookmarkManager", profile_);
- window_->ShowBookmarkManager();
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableTabbedBookmarkManager)) {
+ ShowBookmarkManagerTab();
+ } else {
+ window_->ShowBookmarkManager();
+ }
}
void Browser::ShowAppMenu() {
@@ -1302,6 +1307,11 @@
window_->ShowPageMenu();
}
+void Browser::ShowBookmarkManagerTab() {
+ UserMetrics::RecordAction("ShowBookmarks", profile_);
+ ShowSingletonTab(GURL(chrome::kChromeUIBookmarksURL));
+}
+
void Browser::ShowHistoryTab() {
UserMetrics::RecordAction("ShowHistory", profile_);
ShowSingletonTab(GURL(chrome::kChromeUIHistoryURL));
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/dom_ui/bookmarks_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698