| 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 1c68a244765a4b58c22519cd8236587c0ed07269..0fdc4599ee7b175250305e4e021e6511a196f972 100644
|
| --- a/content/browser/mock_content_browser_client.cc
|
| +++ b/content/browser/mock_content_browser_client.cc
|
| @@ -6,12 +6,26 @@
|
|
|
| #include <string>
|
|
|
| +#include "content/browser/plugin_filter.h"
|
| #include "content/browser/webui/empty_web_ui_factory.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/base/clipboard/clipboard.h"
|
| #include "webkit/glue/webpreferences.h"
|
|
|
| +namespace {
|
| +
|
| +class DummyPluginFilter : public PluginFilter {
|
| + public:
|
| + DummyPluginFilter() {}
|
| +
|
| + virtual bool ShouldUsePlugin(webkit::npapi::WebPluginInfo* plugin) OVERRIDE {
|
| + return true;
|
| + }
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| namespace content {
|
|
|
| MockContentBrowserClient::~MockContentBrowserClient() {
|
| @@ -100,6 +114,15 @@ bool MockContentBrowserClient::AllowSaveLocalState(
|
| return true;
|
| }
|
|
|
| +PluginFilter* 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;
|
|
|