diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 23:07:45 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 23:07:45 +0000 |
commit | bf24d2c7ded5c2072ce211cd4de6af61b8e209d5 (patch) | |
tree | 2fa229d2ab5b18fe5e49b2a7794f277f0297237d /chrome/browser | |
parent | 55f81fe6b97331c509b0dfbc0665813b41f526a4 (diff) | |
download | chromium_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/browser')
-rw-r--r-- | chrome/browser/extensions/extensions_service.cc | 11 | ||||
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc index a8c395c..17c5afe 100644 --- a/chrome/browser/extensions/extensions_service.cc +++ b/chrome/browser/extensions/extensions_service.cc @@ -183,6 +183,8 @@ bool ExtensionsServiceBackend::LoadExtensionsFromDirectory( if (!file_util::AbsolutePath(&path)) NOTREACHED(); + LOG(INFO) << "Loading installed extensions..."; + // Find all child directories in the install directory and load their // manifests. Post errors and results to the frontend. scoped_ptr<ExtensionList> extensions(new ExtensionList); @@ -199,12 +201,17 @@ bool ExtensionsServiceBackend::LoadExtensionsFromDirectory( continue; } + LOG(INFO) << " " << WideToASCII(child_path.BaseName().ToWStringHack()) << + " version: " << version_str; + child_path = child_path.AppendASCII(version_str); Extension* extension = LoadExtension(child_path, frontend); if (extension) extensions->push_back(extension); } + LOG(INFO) << "Done."; + ReportExtensionsLoaded(frontend.get(), extensions.release()); return true; } @@ -215,6 +222,10 @@ bool ExtensionsServiceBackend::LoadSingleExtension( FilePath path = path_in; if (!file_util::AbsolutePath(&path)) NOTREACHED(); + + LOG(INFO) << "Loading single extension from " << + WideToASCII(path.BaseName().ToWStringHack()); + Extension* extension = LoadExtension(path, frontend); if (extension) { ExtensionList* extensions = new ExtensionList; diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index b54fe20..15d2317 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -409,6 +409,7 @@ bool PluginProcessHost::Init(const WebPluginInfo& info, switches::kEnableLogging, switches::kDisableLogging, switches::kLoggingLevel, + switches::kLogPluginMessages, switches::kUserDataDir, switches::kAllowAllActiveX, switches::kEnableDCHECK, |