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

Side by Side Diff: content/browser/site_per_process_browsertest.cc

Issue 2806263005: Convert the overlay scrollbar flag to use FeatureList (Closed)
Patch Set: update histograms.xml Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/site_per_process_browsertest.h" 5 #include "content/browser/site_per_process_browsertest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include "third_party/WebKit/public/platform/WebInputEvent.h" 80 #include "third_party/WebKit/public/platform/WebInputEvent.h"
81 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 81 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
82 #include "third_party/WebKit/public/web/WebSandboxFlags.h" 82 #include "third_party/WebKit/public/web/WebSandboxFlags.h"
83 #include "ui/display/display_switches.h" 83 #include "ui/display/display_switches.h"
84 #include "ui/display/screen.h" 84 #include "ui/display/screen.h"
85 #include "ui/events/base_event_utils.h" 85 #include "ui/events/base_event_utils.h"
86 #include "ui/events/event.h" 86 #include "ui/events/event.h"
87 #include "ui/events/event_utils.h" 87 #include "ui/events/event_utils.h"
88 #include "ui/gfx/geometry/point.h" 88 #include "ui/gfx/geometry/point.h"
89 #include "ui/latency/latency_info.h" 89 #include "ui/latency/latency_info.h"
90 #include "ui/native_theme/native_theme_switches.h"
91 90
92 #if defined(USE_AURA) 91 #if defined(USE_AURA)
93 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 92 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
94 #endif 93 #endif
95 94
96 #if defined(OS_MACOSX) 95 #if defined(OS_MACOSX)
97 #include "ui/base/test/scoped_preferred_scroller_style_mac.h" 96 #include "ui/base/test/scoped_preferred_scroller_style_mac.h"
98 #endif 97 #endif
99 98
100 #if defined(OS_ANDROID) 99 #if defined(OS_ANDROID)
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 SitePerProcessBrowserTest::SitePerProcessBrowserTest() { 611 SitePerProcessBrowserTest::SitePerProcessBrowserTest() {
613 }; 612 };
614 613
615 std::string SitePerProcessBrowserTest::DepictFrameTree(FrameTreeNode* node) { 614 std::string SitePerProcessBrowserTest::DepictFrameTree(FrameTreeNode* node) {
616 return visualizer_.DepictFrameTree(node); 615 return visualizer_.DepictFrameTree(node);
617 } 616 }
618 617
619 void SitePerProcessBrowserTest::SetUpCommandLine( 618 void SitePerProcessBrowserTest::SetUpCommandLine(
620 base::CommandLine* command_line) { 619 base::CommandLine* command_line) {
621 IsolateAllSitesForTesting(command_line); 620 IsolateAllSitesForTesting(command_line);
622 #if !defined(OS_ANDROID) 621 }
bokan 2017/04/11 19:11:42 I added that to disable overlays in a specific tes
chaopeng 2017/04/11 19:16:48 I think I should add it back.
chaopeng 2017/04/11 20:27:33 Done.
623 // TODO(bokan): Needed for scrollability check in
624 // FrameOwnerPropertiesPropagationScrolling. crbug.com/662196.
625 command_line->AppendSwitch(switches::kDisableOverlayScrollbar);
626 #endif
627 };
628 622
629 void SitePerProcessBrowserTest::SetUpOnMainThread() { 623 void SitePerProcessBrowserTest::SetUpOnMainThread() {
630 host_resolver()->AddRule("*", "127.0.0.1"); 624 host_resolver()->AddRule("*", "127.0.0.1");
631 SetupCrossSiteRedirector(embedded_test_server()); 625 SetupCrossSiteRedirector(embedded_test_server());
632 ASSERT_TRUE(embedded_test_server()->Start()); 626 ASSERT_TRUE(embedded_test_server()->Start());
633 } 627 }
634 628
635 // 629 //
636 // SitePerProcessHighDPIBrowserTest 630 // SitePerProcessHighDPIBrowserTest
637 // 631 //
(...skipping 9223 matching lines...) Expand 10 before | Expand all | Expand 10 after
9861 names.insert(root->children[0]->frame_entry->frame_unique_name()); 9855 names.insert(root->children[0]->frame_entry->frame_unique_name());
9862 } 9856 }
9863 9857
9864 // More than one entry in the set means that the subframe frame navigation 9858 // More than one entry in the set means that the subframe frame navigation
9865 // entries didn't have a consistent unique name. This will break history 9859 // entries didn't have a consistent unique name. This will break history
9866 // navigations =( 9860 // navigations =(
9867 EXPECT_THAT(names, SizeIs(1)) << "Mismatched names for subframe!"; 9861 EXPECT_THAT(names, SizeIs(1)) << "Mismatched names for subframe!";
9868 } 9862 }
9869 9863
9870 } // namespace content 9864 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698