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

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

Issue 2806263005: Convert the overlay scrollbar flag to use FeatureList (Closed)
Patch Set: move feature_list_ change to SetUpCommandLine 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 #ifndef CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ 5 #ifndef CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
6 #define CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ 6 #define CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/test/scoped_feature_list.h"
11 #include "content/browser/web_contents/web_contents_impl.h" 12 #include "content/browser/web_contents/web_contents_impl.h"
12 #include "content/public/test/content_browser_test.h" 13 #include "content/public/test/content_browser_test.h"
13 #include "content/shell/browser/shell.h" 14 #include "content/shell/browser/shell.h"
14 #include "content/test/content_browser_test_utils_internal.h" 15 #include "content/test/content_browser_test_utils_internal.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 namespace content { 18 namespace content {
18 19
19 class FrameTreeNode; 20 class FrameTreeNode;
20 21
21 class SitePerProcessBrowserTest : public ContentBrowserTest { 22 class SitePerProcessBrowserTest : public ContentBrowserTest {
22 public: 23 public:
23 SitePerProcessBrowserTest(); 24 SitePerProcessBrowserTest();
24 25
25 protected: 26 protected:
26 std::string DepictFrameTree(FrameTreeNode* node); 27 std::string DepictFrameTree(FrameTreeNode* node);
27 28
28 void SetUpCommandLine(base::CommandLine* command_line) override; 29 void SetUpCommandLine(base::CommandLine* command_line) override;
29 void SetUpOnMainThread() override; 30 void SetUpOnMainThread() override;
30 31
31 WebContentsImpl* web_contents() const { 32 WebContentsImpl* web_contents() const {
32 return static_cast<WebContentsImpl*>(shell()->web_contents()); 33 return static_cast<WebContentsImpl*>(shell()->web_contents());
33 } 34 }
34 35
35 private: 36 private:
36 FrameTreeVisualizer visualizer_; 37 FrameTreeVisualizer visualizer_;
38 base::test::ScopedFeatureList feature_list_;
37 39
38 DISALLOW_COPY_AND_ASSIGN(SitePerProcessBrowserTest); 40 DISALLOW_COPY_AND_ASSIGN(SitePerProcessBrowserTest);
39 }; 41 };
40 42
41 } // namespace content 43 } // namespace content
42 44
43 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ 45 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698