Index: content/plugin/plugin_channel.cc |
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc |
index 10cd6757a0c6c75b78f13d8093c9c9460a5152a6..9a566d53b6ad7854a22bfcfcb9517c45c28e79ab 100644 |
--- a/content/plugin/plugin_channel.cc |
+++ b/content/plugin/plugin_channel.cc |
@@ -245,6 +245,8 @@ PluginChannel::PluginChannel() |
filter_(new MessageFilter()), |
npp_(new struct _NPP) { |
set_send_unblocking_only_during_unblock_dispatch(); |
+ const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ log_messages_ = command_line->HasSwitch(switches::kLogPluginMessages); |
// Register |npp_| as the default owner for any object we receive via IPC, |
// and register it with WebBindings as a valid owner. |