Chromium Code Reviews| Index: chrome/browser/extensions/page_action_controller.cc |
| diff --git a/chrome/browser/extensions/page_action_controller.cc b/chrome/browser/extensions/page_action_controller.cc |
| index 8e39531404fb6229e7342e6f03043627271ccbde..3956072adabfc988485398f383d1746fd39c74ce 100644 |
| --- a/chrome/browser/extensions/page_action_controller.cc |
| +++ b/chrome/browser/extensions/page_action_controller.cc |
| @@ -64,32 +64,8 @@ ExtensionAction::ShowAction PageActionController::OnClicked( |
| } |
| void PageActionController::OnNavigated() { |
| - const ExtensionSet& extensions = |
| - ExtensionRegistry::Get(web_contents_->GetBrowserContext()) |
| - ->enabled_extensions(); |
| - int tab_id = SessionTabHelper::IdForTab(web_contents_); |
| - size_t num_current_actions = 0u; |
| - for (ExtensionSet::const_iterator iter = extensions.begin(); |
| - iter != extensions.end(); |
| - ++iter) { |
| - ExtensionAction* action = GetActionForExtension(*iter); |
| - if (action) { |
| - action->ClearAllValuesForTab(tab_id); |
| - ++num_current_actions; |
| - } |
| - } |
| - |
| - Profile* profile = GetProfile(); |
| - // Report the number of page actions for this profile, if we haven't already. |
| - // TODO(rdevlin.cronin): This is wrong. Instead, it should record the number |
| - // of page actions displayed per page. |
| - if (!g_reported_for_profiles.Get().count(profile)) { |
|
Devlin
2014/08/21 14:05:43
From Other Comment:
"We wanted to know how common
Finnur
2014/08/21 14:19:18
If that means killing this one and leaving the oth
|
| - UMA_HISTOGRAM_COUNTS_100("PageActionController.ExtensionsWithPageActions", |
| - num_current_actions); |
| - g_reported_for_profiles.Get().insert(profile); |
| - } |
| - |
| - LocationBarController::NotifyChange(web_contents_); |
| + // Clearing extension action values is handled in TabHelper, so nothing to |
| + // do here. |
| } |
| void PageActionController::OnExtensionActionUpdated( |