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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_action_api.cc

Issue 270153004: Introduce ActiveScriptController; track active extension scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UMA Created 6 years, 7 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/api/extension_action/extension_action_api.cc
diff --git a/chrome/browser/extensions/api/extension_action/extension_action_api.cc b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
index 3b552b3cd30ea21b014c1c5073317db540926b07..af569073dc2a20e711fd5fb5991792f517426db0 100644
--- a/chrome/browser/extensions/api/extension_action/extension_action_api.cc
+++ b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
@@ -398,6 +398,9 @@ void ExtensionActionAPI::ExtensionActionExecuted(
case ActionInfo::TYPE_SYSTEM_INDICATOR:
// The System Indicator handles its own clicks.
break;
+ case ActionInfo::TYPE_ACTIVE_SCRIPT:
+ NOTREACHED(); // We shouldn't get these calls (yet).
+ return;
}
if (event_name) {
@@ -620,6 +623,9 @@ void ExtensionActionFunction::NotifyChange() {
case ActionInfo::TYPE_SYSTEM_INDICATOR:
NotifySystemIndicatorChange();
return;
+ case ActionInfo::TYPE_ACTIVE_SCRIPT:
+ NOTREACHED(); // We shouldn't get these calls (yet).
+ return;
}
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698