summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 17:26:07 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 17:26:07 +0000
commitb1f172a7a0044d0c839fd30c478de22e28589687 (patch)
treee0fec88f881f3e58b605026e740ad0dd74ced95b
parent692ba95c31361eb2bf22fdfd344ee78ec2725a14 (diff)
downloadchromium_src-b1f172a7a0044d0c839fd30c478de22e28589687.zip
chromium_src-b1f172a7a0044d0c839fd30c478de22e28589687.tar.gz
chromium_src-b1f172a7a0044d0c839fd30c478de22e28589687.tar.bz2
Add logging to NPP_ClearSiteData call.
BUG=58235 TEST=none Review URL: http://codereview.chromium.org/6826028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81114 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/browser/plugin_process_host.cc27
-rw-r--r--content/plugin/plugin_channel.cc7
2 files changed, 20 insertions, 14 deletions
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc
index 3dab715..bc26361 100644
--- a/content/browser/plugin_process_host.cc
+++ b/content/browser/plugin_process_host.cc
@@ -176,26 +176,27 @@ bool PluginProcessHost::Init(const webkit::npapi::WebPluginInfo& info,
// Propagate the following switches to the plugin command line (along with
// any associated values) if present in the browser command line
static const char* const kSwitchNames[] = {
- switches::kPluginStartupDialog,
- switches::kNoSandbox,
- switches::kSafePlugins,
- switches::kTestSandbox,
- switches::kUserAgent,
switches::kDisableBreakpad,
- switches::kFullMemoryCrashReport,
- switches::kEnableLogging,
switches::kDisableLogging,
- switches::kLoggingLevel,
- switches::kLogPluginMessages,
- switches::kUserDataDir,
switches::kEnableDCHECK,
- switches::kSilentDumpOnDCHECK,
- switches::kMemoryProfiling,
+ switches::kEnableLogging,
switches::kEnableStatsTable,
- switches::kUseGL,
+ switches::kFullMemoryCrashReport,
+ switches::kLoggingLevel,
#if defined(OS_CHROMEOS)
switches::kLoginProfile,
#endif
+ switches::kLogPluginMessages,
+ switches::kMemoryProfiling,
+ switches::kNoSandbox,
+ switches::kPluginStartupDialog,
+ switches::kSafePlugins,
+ switches::kSilentDumpOnDCHECK,
+ switches::kTestSandbox,
+ switches::kUseGL,
+ switches::kUserAgent,
+ switches::kUserDataDir,
+ switches::kV,
};
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc
index 8d90601..9e2c2ce 100644
--- a/content/plugin/plugin_channel.cc
+++ b/content/plugin/plugin_channel.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -275,6 +275,11 @@ void PluginChannel::OnClearSiteData(const std::string& site,
max_age = kuint64max;
}
err = plugin_lib->NP_ClearSiteData(site_str, flags, max_age);
+ std::string site_name =
+ site.empty() ? "NULL"
+ : base::StringPrintf("\"%s\"", site_str);
+ VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", "
+ << max_age << ") returned " << err;
success = (err == NPERR_NO_ERROR);
}
}