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

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 505913002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add {} Created 6 years, 4 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
Index: chrome/browser/ui/views/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index 032862a6ec7fd861f4a607414ed853dce5b947a9..de56b314e6f5e4aca438bb327c779027f8e71065 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -1090,7 +1090,7 @@ size_t BrowserActionsContainer::GetIconCount() const {
const extensions::ExtensionList& extensions = model_->toolbar_items();
for (extensions::ExtensionList::const_iterator iter = extensions.begin();
iter != extensions.end(); ++iter) {
- displayable_icon_count += ShouldDisplayBrowserAction(*iter) ? 1u : 0u;
+ displayable_icon_count += ShouldDisplayBrowserAction(iter->get()) ? 1u : 0u;
}
// Find the absolute value for the model's visible count.
int model_size = model_->GetVisibleIconCount();

Powered by Google App Engine
This is Rietveld 408576698