| Index: chrome/browser/download/download_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/download/download_browsertest.cc (revision 212185)
|
| +++ chrome/browser/download/download_browsertest.cc (working copy)
|
| @@ -65,7 +65,6 @@
|
| #include "content/public/browser/download_save_info.h"
|
| #include "content/public/browser/download_url_parameters.h"
|
| #include "content/public/browser/notification_source.h"
|
| -#include "content/public/browser/plugin_service.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/resource_context.h"
|
| #include "content/public/browser/web_contents.h"
|
| @@ -83,7 +82,6 @@
|
| #include "net/test/spawned_test_server/spawned_test_server.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| -#include "webkit/plugins/npapi/mock_plugin_list.h"
|
|
|
| using content::BrowserContext;
|
| using content::BrowserThread;
|
| @@ -473,6 +471,10 @@
|
| file_activity_observer_.reset();
|
| }
|
|
|
| + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
|
| + command_line->AppendSwitch(switches::kDisablePluginsDiscovery);
|
| + }
|
| +
|
| // Returning false indicates a failure of the setup, and should be asserted
|
| // in the caller.
|
| virtual bool InitialSetup() {
|
| @@ -1850,12 +1852,6 @@
|
| base::FilePath file(FILE_PATH_LITERAL("downloads/dangerous/dangerous.swf"));
|
| GURL download_url(URLRequestMockHTTPJob::GetMockUrl(file));
|
|
|
| - // Null out plugins so that flash plugin won't interfere with testing.
|
| -#if defined(ENABLE_PLUGINS)
|
| - webkit::npapi::MockPluginList plugin_list;
|
| - content::PluginService::GetInstance()->SetPluginListForTesting(&plugin_list);
|
| -#endif
|
| -
|
| // Download the url and wait until the object has been stored.
|
| scoped_ptr<content::DownloadTestObserver> download_observer(
|
| new content::DownloadTestObserverTerminal(
|
|
|