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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 11308295: Revert 170483 - Remove PrefObserver usages, batch 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/cocoa/location_bar/location_bar_view_mac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
===================================================================
--- chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm (revision 170518)
+++ chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm (working copy)
@@ -139,11 +139,8 @@
chrome::NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED,
content::Source<Profile>(browser_->profile()));
- edit_bookmarks_enabled_.Init(
- prefs::kEditBookmarksEnabled,
- profile_->GetPrefs(),
- base::Bind(&LocationBarViewMac::OnEditBookmarksEnabledChanged,
- base::Unretained(this)));
+ edit_bookmarks_enabled_.Init(prefs::kEditBookmarksEnabled,
+ profile_->GetPrefs(), this);
}
LocationBarViewMac::~LocationBarViewMac() {
@@ -600,7 +597,8 @@
}
}
-void LocationBarViewMac::OnEditBookmarksEnabledChanged() {
+void LocationBarViewMac::OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) {
UpdateStarDecorationVisibility();
OnChanged();
}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698