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

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: Latest master for CQ 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/extension_action/extension_action_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a6ad2bb56847d478adf99463e6683a1e21ec573f..3cda93e9e76cf5a6fb74ff3ecab21ec6a16e491b 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"
@@ -218,8 +219,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(
@@ -261,7 +264,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(
« no previous file with comments | « no previous file | chrome/browser/extensions/api/extension_action/extension_action_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698