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

Unified Diff: chrome/browser/views/bookmark_bar_view.cc

Issue 46078: Mac bookmark work. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/views/bookmark_bar_view.h ('k') | chrome/browser/views/bookmark_table_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view.cc
===================================================================
--- chrome/browser/views/bookmark_bar_view.cc (revision 11933)
+++ chrome/browser/views/bookmark_bar_view.cc (working copy)
@@ -417,28 +417,6 @@
return *kFolderIcon;
}
-// static
-void BookmarkBarView::ToggleWhenVisible(Profile* profile) {
- PrefService* prefs = profile->GetPrefs();
- const bool always_show = !prefs->GetBoolean(prefs::kShowBookmarkBar);
-
- // The user changed when the bookmark bar is shown, update the preferences.
- prefs->SetBoolean(prefs::kShowBookmarkBar, always_show);
- prefs->ScheduleSavePersistentPrefs(g_browser_process->file_thread());
-
- // And notify the notification service.
- Source<Profile> source(profile);
- NotificationService::current()->Notify(
- NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
- source,
- NotificationService::NoDetails());
-}
-
-// static
-void BookmarkBarView::RegisterUserPrefs(PrefService* prefs) {
- prefs->RegisterBooleanPref(prefs::kShowBookmarkBar, false);
-}
-
BookmarkBarView::BookmarkBarView(Profile* profile, Browser* browser)
: profile_(NULL),
browser_(browser),
@@ -1349,7 +1327,7 @@
}
void BookmarkBarView::ExecuteCommand(int id) {
- ToggleWhenVisible(profile_);
+ bookmark_utils::ToggleWhenVisible(profile_);
}
void BookmarkBarView::Observe(NotificationType type,
« no previous file with comments | « chrome/browser/views/bookmark_bar_view.h ('k') | chrome/browser/views/bookmark_table_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698