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

Unified Diff: chrome/browser/ui/toolbar/action_box_button_controller.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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/toolbar/action_box_button_controller.cc
diff --git a/chrome/browser/ui/toolbar/action_box_button_controller.cc b/chrome/browser/ui/toolbar/action_box_button_controller.cc
index 396743e883ecfd55b2270caf2022c02e7afece04..5fe97d32e642cc620054796f353af47da80552aa 100644
--- a/chrome/browser/ui/toolbar/action_box_button_controller.cc
+++ b/chrome/browser/ui/toolbar/action_box_button_controller.cc
@@ -88,7 +88,7 @@ void ActionBoxButtonController::OnButtonClicked() {
WebIntentsRegistryFactory::GetForProfile(browser_->profile());
for (ExtensionSet::const_iterator it = extension_set->begin();
it != extension_set->end(); ++it) {
- const extensions::Extension* extension = *it;
+ const extensions::Extension* extension = *it.get();
WebIntentsRegistry::IntentServiceList services;
intents_registry->GetIntentServicesForExtensionFilter(
ASCIIToUTF16(kShareIntentAction),
@@ -127,7 +127,7 @@ void ActionBoxButtonController::OnButtonClicked() {
extension_service->toolbar_model()->action_box_menu_items();
for (extensions::ExtensionList::const_iterator it = extensions.begin();
it != extensions.end(); ++it) {
- menu_model->AddExtension(**it, GetCommandIdForExtension(**it));
+ menu_model->AddExtension(**it.get(), GetCommandIdForExtension(**it.get()));
}
// And show the menu.
« no previous file with comments | « chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/toolbar/toolbar_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698