summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 23:07:45 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 23:07:45 +0000
commitbf24d2c7ded5c2072ce211cd4de6af61b8e209d5 (patch)
tree2fa229d2ab5b18fe5e49b2a7794f277f0297237d /chrome/renderer
parent55f81fe6b97331c509b0dfbc0665813b41f526a4 (diff)
downloadchromium_src-bf24d2c7ded5c2072ce211cd4de6af61b8e209d5.zip
chromium_src-bf24d2c7ded5c2072ce211cd4de6af61b8e209d5.tar.gz
chromium_src-bf24d2c7ded5c2072ce211cd4de6af61b8e209d5.tar.bz2
Add logging to ExtensionsService, UserScriptMaster,
and PluginChannel to be able to see what happens when chrome runs extensions headless. It would be better to modify the existing IPC::Logging mechanism than add logging to PluginChannel, so that it could be useful for debugging other types of IPC problems. But I don't have time to do that right now. Review URL: http://codereview.chromium.org/28091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/user_script_slave.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/user_script_slave.cc b/chrome/renderer/user_script_slave.cc
index cd3951a..36d366d 100644
--- a/chrome/renderer/user_script_slave.cc
+++ b/chrome/renderer/user_script_slave.cc
@@ -119,5 +119,10 @@ bool UserScriptSlave::InjectScripts(WebFrame* frame,
HISTOGRAM_TIMES("UserScripts:DocEnd:Time", timer.Elapsed());
}
+ if (num_matched > 0) {
+ LOG(INFO) << "Injected " << num_matched << " scripts into " <<
+ frame->GetURL().spec();
+ }
+
return true;
}