[ MimeHandlerView ] Explicitly turn flag off in certain spp tests

Some of ChromeSitePerProcessPDFTests are actually BrowserPlugin-based
tests which do not make sense or fail with the frame-based
MimeHandlerView. This CL ensures the corresponding flag is turned off.

Bug: 961786
Change-Id: I388b417cf92661cff14f5b69d2ea0d74758ade9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614359
Reviewed-by: Ɓukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: James MacLean <wjmaclean@chromium.org>
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Ehsan Karamad <ekaramad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660276}
diff --git a/chrome/browser/site_isolation/chrome_site_per_process_browsertest.cc b/chrome/browser/site_isolation/chrome_site_per_process_browsertest.cc
index 5ab07d5..25c26062 100644
--- a/chrome/browser/site_isolation/chrome_site_per_process_browsertest.cc
+++ b/chrome/browser/site_isolation/chrome_site_per_process_browsertest.cc
@@ -504,16 +504,27 @@
   DISALLOW_COPY_AND_ASSIGN(ChromeSitePerProcessPDFTest);
 };
 
+class ChromeSitePerProcessBrowserPluginPDFTest
+    : public ChromeSitePerProcessPDFTest {
+  void SetUpCommandLine(base::CommandLine* cl) override {
+    scoped_feature_list_.InitAndDisableFeature(
+        features::kMimeHandlerViewInCrossProcessFrame);
+  }
+
+ private:
+  base::test::ScopedFeatureList scoped_feature_list_;
+};
+
 // Regression test for https://crbug.com/870536. Ensure that the test doesn't
 // crash when a GestureScrollBegin is sent to BrowserPluginGuest, while the
 // GestureScrollUpdates are sent to its embedder. For both non-OOPIF and OOPIF
 // cases.
-IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessPDFTest,
+IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessBrowserPluginPDFTest,
                        ResendGestureToEmbedderOOPIF) {
   ResendGestureToEmbedder("b.com");
 }
 
-IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessPDFTest,
+IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessBrowserPluginPDFTest,
                        ResendGestureToEmbedderNonOOPIF) {
   ResendGestureToEmbedder("a.com");
 }
@@ -521,12 +532,12 @@
 // Regression test for https://crbug.com/873211. MaybeSendSyntheticTapGesture
 // can be called with no touch action set in TouchActionFilter and results in
 // a crash.
-IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessPDFTest,
+IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessBrowserPluginPDFTest,
                        SendSyntheticTapGestureOOPIF) {
   SendSyntheticTapGesture("b.com");
 }
 
-IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessPDFTest,
+IN_PROC_BROWSER_TEST_F(ChromeSitePerProcessBrowserPluginPDFTest,
                        SendSyntheticTapGestureNonOOPIF) {
   SendSyntheticTapGesture("a.com");
 }