diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 21:44:16 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 21:44:16 +0000 |
commit | 1bf0fb266408d260d7b01e8cfabb531937d8d953 (patch) | |
tree | ce953516187873b48ff0454f653e10a662ea5a9c /content/browser/plugin_data_remover_impl_browsertest.cc | |
parent | 5f1d99dceda9a8d8e137635b375d9e3b46921680 (diff) | |
download | chromium_src-1bf0fb266408d260d7b01e8cfabb531937d8d953.zip chromium_src-1bf0fb266408d260d7b01e8cfabb531937d8d953.tar.gz chromium_src-1bf0fb266408d260d7b01e8cfabb531937d8d953.tar.bz2 |
Add an interface for Flash to clear its data.
This mirrors NPP_ClearSiteData. I basically just hooked into the existing infrastructure in the browser process, and create a new plugin.
I changed the NPAPI IPC message to take the max age rather than compute it from the time so I did not have to duplicate the time computation code.
Review URL: https://chromiumcodereview.appspot.com/9981015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_data_remover_impl_browsertest.cc')
-rw-r--r-- | content/browser/plugin_data_remover_impl_browsertest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/browser/plugin_data_remover_impl_browsertest.cc b/content/browser/plugin_data_remover_impl_browsertest.cc index c1689e3..e9ff41d 100644 --- a/content/browser/plugin_data_remover_impl_browsertest.cc +++ b/content/browser/plugin_data_remover_impl_browsertest.cc @@ -11,6 +11,8 @@ #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/ui_test_utils.h" +namespace content { + namespace { const char* kNPAPITestPluginMimeType = "application/vnd.npapi-test"; } @@ -35,7 +37,7 @@ class PluginDataRemoverTest : public InProcessBrowserTest, }; IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) { - PluginDataRemoverImpl plugin_data_remover(GetResourceContext()); + PluginDataRemoverImpl plugin_data_remover(GetBrowserContext()); plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType); base::WaitableEventWatcher watcher; base::WaitableEvent* event = @@ -43,3 +45,5 @@ IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) { watcher.StartWatching(event, this); ui_test_utils::RunMessageLoop(); } + +} // namespace content |