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

Unified Diff: chrome/browser/extensions/active_script_controller.cc

Issue 496403003: Remove NOTIFICATION_EXTENSION_PAGE_ACTIONS_UPDATED (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/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(

Powered by Google App Engine
This is Rietveld 408576698