Index: chrome/browser/ui/location_bar/location_bar.cc |
diff --git a/chrome/browser/ui/location_bar/location_bar.cc b/chrome/browser/ui/location_bar/location_bar.cc |
index 0e1edd993d90fba5f6b3e8cfd9cbea0f01a8aa47..aad03b260efe2eb632731eef4f9e33e3134f1c2e 100644 |
--- a/chrome/browser/ui/location_bar/location_bar.cc |
+++ b/chrome/browser/ui/location_bar/location_bar.cc |
@@ -23,7 +23,7 @@ bool LocationBar::IsBookmarkStarHiddenByExtension() const { |
extensions::ExtensionRegistry::Get(profile_)->enabled_extensions(); |
for (extensions::ExtensionSet::const_iterator i = extension_set.begin(); |
i != extension_set.end(); ++i) { |
- if (extensions::UIOverrides::RemovesBookmarkButton(*i) && |
+ if (extensions::UIOverrides::RemovesBookmarkButton(i->get()) && |
((*i)->permissions_data()->HasAPIPermission( |
extensions::APIPermission::kBookmarkManagerPrivate) || |
extensions::FeatureSwitch::enable_override_bookmarks_ui() |