Index: chrome/browser/extensions/active_script_controller.cc |
diff --git a/chrome/browser/extensions/active_script_controller.cc b/chrome/browser/extensions/active_script_controller.cc |
index 9a8a6ec92dee420f9a4f5576271b52faab3bd712..12df3e44ec8160f158b3a8d99ebf088384df65ae 100644 |
--- a/chrome/browser/extensions/active_script_controller.cc |
+++ b/chrome/browser/extensions/active_script_controller.cc |
@@ -10,6 +10,7 @@ |
#include "base/metrics/histogram.h" |
#include "base/stl_util.h" |
#include "chrome/browser/extensions/active_tab_permission_granter.h" |
+#include "chrome/browser/extensions/api/extension_action/extension_action_api.h" |
#include "chrome/browser/extensions/extension_action.h" |
#include "chrome/browser/extensions/extension_action_manager.h" |
#include "chrome/browser/extensions/extension_util.h" |
@@ -220,8 +221,10 @@ void ActiveScriptController::RequestScriptInjection( |
// If this was the first entry, notify the location bar that there's a new |
// icon. |
- if (list.size() == 1u) |
- LocationBarController::NotifyChange(web_contents()); |
+ if (list.size() == 1u) { |
+ ExtensionActionAPI::Get(web_contents()->GetBrowserContext())-> |
+ NotifyPageActionsChanged(web_contents()); |
+ } |
} |
void ActiveScriptController::RunPendingForExtension( |
@@ -263,7 +266,8 @@ void ActiveScriptController::RunPendingForExtension( |
} |
// Inform the location bar that the action is now gone. |
- LocationBarController::NotifyChange(web_contents()); |
+ ExtensionActionAPI::Get(web_contents()->GetBrowserContext())-> |
+ NotifyPageActionsChanged(web_contents()); |
} |
void ActiveScriptController::OnRequestScriptInjectionPermission( |