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

Unified Diff: content/browser/browser_plugin/browser_plugin_host_browsertest.cc

Issue 11035070: <browser> Disable browser plugin in content_shell by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort one include and arg in a list. Created 8 years, 2 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
Index: content/browser/browser_plugin/browser_plugin_host_browsertest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
index 0fcf028355701bb993cea1ff567cd83e2154d7e5..fbf15a8711c2dbb6866e320540c33c36902d57e9 100644
--- a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
+++ b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/command_line.h"
#include "base/memory/singleton.h"
#include "base/run_loop.h"
#include "base/test/test_timeouts.h"
@@ -16,6 +17,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_view_host_observer.h"
+#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "content/shell/shell.h"
@@ -217,6 +219,11 @@ class BrowserPluginHostTest : public ContentBrowserTest {
ContentBrowserTest::TearDown();
}
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
+ // Enable browser plugin in content_shell for running test.
+ command_line->AppendSwitch(switches::kEnableBrowserPluginForAllViewTypes);
+ }
+
static void SimulateTabKeyPress(WebContents* web_contents) {
SimulateKeyPress(web_contents,
ui::VKEY_TAB,
@@ -285,9 +292,9 @@ class BrowserPluginHostTest : public ContentBrowserTest {
TestBrowserPluginGuest* test_guest() const { return test_guest_; }
private:
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostTest);
TestBrowserPluginEmbedder* test_embedder_;
TestBrowserPluginGuest* test_guest_;
+ DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostTest);
};
// This test loads a guest that has infinite loop, therefore it hangs the guest

Powered by Google App Engine
This is Rietveld 408576698