| Index: content/browser/mock_content_browser_client.cc
|
| diff --git a/content/browser/mock_content_browser_client.cc b/content/browser/mock_content_browser_client.cc
|
| index a3fa95cded52e18c73642b9d6b1bedb1adf5edde..33016f54ff995db8607a28943d0e723a13d473dd 100644
|
| --- a/content/browser/mock_content_browser_client.cc
|
| +++ b/content/browser/mock_content_browser_client.cc
|
| @@ -12,6 +12,19 @@
|
| #include "ui/base/clipboard/clipboard.h"
|
| #include "webkit/glue/webpreferences.h"
|
|
|
| +namespace {
|
| +
|
| +class DummyPluginFilter : public PluginService::Filter {
|
| + public:
|
| + DummyPluginFilter() {}
|
| +
|
| + virtual bool ShouldUsePlugin(webkit::npapi::WebPluginInfo* plugin) OVERRIDE {
|
| + return true;
|
| + }
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| namespace content {
|
|
|
| MockContentBrowserClient::~MockContentBrowserClient() {
|
| @@ -100,6 +113,15 @@ bool MockContentBrowserClient::AllowSaveLocalState(
|
| return true;
|
| }
|
|
|
| +PluginService::Filter* MockContentBrowserClient::CreatePluginFilter(
|
| + int render_process_id,
|
| + int render_view_id,
|
| + const content::ResourceContext& context,
|
| + const GURL& url,
|
| + const GURL& policy_url) {
|
| + return new DummyPluginFilter();
|
| +}
|
| +
|
| QuotaPermissionContext*
|
| MockContentBrowserClient::CreateQuotaPermissionContext() {
|
| return NULL;
|
|
|