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

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

Issue 492803003: Ensure that "Always Run" context menu item dissapears upon granting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | no next file » | 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 d82290756cd6b89965108d96e6ff472750710535..fe6a439c7b326e241a3f629f123c947332a03536 100644
--- a/chrome/browser/extensions/active_script_controller.cc
+++ b/chrome/browser/extensions/active_script_controller.cc
@@ -139,7 +139,7 @@ void ActiveScriptController::AlwaysRunOnVisibleOrigin(
}
bool ActiveScriptController::HasActiveScriptAction(const Extension* extension) {
- return enabled_ && active_script_actions_.count(extension->id()) > 0;
+ return enabled_ && pending_requests_.count(extension->id()) > 0;
not at google - send to devlin 2014/08/20 20:27:07 active_script_actions_ seems like the right check
}
ExtensionAction* ActiveScriptController::GetActionForExtension(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698