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

Unified Diff: extensions/renderer/scripts_run_info.cc

Issue 2089333002: [Extensions] Add renderer-side logic to short circuit activity logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Guard adding dom activity loggers Created 4 years, 6 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 | « extensions/renderer/scripts_run_info.h ('k') | extensions/renderer/user_script_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/scripts_run_info.cc
diff --git a/extensions/renderer/scripts_run_info.cc b/extensions/renderer/scripts_run_info.cc
index b31bbe07ba12ac24c56aa22a65fa791260a7d7c9..7b668c6e66ab44a219125328daaefe0c41f69e19 100644
--- a/extensions/renderer/scripts_run_info.cc
+++ b/extensions/renderer/scripts_run_info.cc
@@ -27,9 +27,9 @@ ScriptsRunInfo::ScriptsRunInfo(content::RenderFrame* render_frame,
ScriptsRunInfo::~ScriptsRunInfo() {
}
-void ScriptsRunInfo::LogRun() {
+void ScriptsRunInfo::LogRun(bool send_script_activity) {
// Notify the browser if any extensions are now executing scripts.
- if (!executing_scripts.empty()) {
+ if (!executing_scripts.empty() && send_script_activity) {
content::RenderThread::Get()->Send(
new ExtensionHostMsg_ContentScriptsExecuting(
routing_id_, executing_scripts, frame_url_));
« no previous file with comments | « extensions/renderer/scripts_run_info.h ('k') | extensions/renderer/user_script_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698