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

Unified Diff: content/plugin/plugin_channel.cc

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « content/plugin/plugin_channel.h ('k') | content/ppapi_plugin/ppapi_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_channel.cc
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc
index 56bdf4763f284520351d574d28bae4a8971c7fac..dd60b679c03b53bf6c9568a8e0a2a5ae0144e5cc 100644
--- a/content/plugin/plugin_channel.cc
+++ b/content/plugin/plugin_channel.cc
@@ -258,7 +258,7 @@ int PluginChannel::GenerateRouteID() {
void PluginChannel::OnClearSiteData(const std::string& site,
uint64 flags,
- base::Time begin_time) {
+ uint64 max_age) {
bool success = false;
CommandLine* command_line = CommandLine::ForCurrentProcess();
FilePath path = command_line->GetSwitchValuePath(switches::kPluginPath);
@@ -268,13 +268,6 @@ void PluginChannel::OnClearSiteData(const std::string& site,
NPError err = plugin_lib->NP_Initialize();
if (err == NPERR_NO_ERROR) {
const char* site_str = site.empty() ? NULL : site.c_str();
- uint64 max_age;
- if (begin_time > base::Time()) {
- base::TimeDelta delta = base::Time::Now() - begin_time;
- max_age = delta.InSeconds();
- } else {
- max_age = kuint64max;
- }
err = plugin_lib->NP_ClearSiteData(site_str, flags, max_age);
std::string site_name =
site.empty() ? "NULL"
« no previous file with comments | « content/plugin/plugin_channel.h ('k') | content/ppapi_plugin/ppapi_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698