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

Unified Diff: content/browser/site_per_process_browsertest.h

Issue 1890453002: [Refactor] Replace static casts to WebContentsImpl with member function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged after Rebase of 1652483002 Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/DEPS ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_per_process_browsertest.h
diff --git a/content/browser/site_per_process_browsertest.h b/content/browser/site_per_process_browsertest.h
index 16db097ed49ecb0bee58f427169f791f31003ef5..32861ec6d3978e1139d0bd3201b34c1e2aa1f9b7 100644
--- a/content/browser/site_per_process_browsertest.h
+++ b/content/browser/site_per_process_browsertest.h
@@ -7,14 +7,15 @@
#include <string>
+#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/content_browser_test.h"
+#include "content/shell/browser/shell.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "url/gurl.h"
namespace content {
class FrameTreeNode;
-class Shell;
class SitePerProcessBrowserTest : public ContentBrowserTest {
public:
@@ -26,6 +27,10 @@ class SitePerProcessBrowserTest : public ContentBrowserTest {
void SetUpCommandLine(base::CommandLine* command_line) override;
void SetUpOnMainThread() override;
+ WebContentsImpl* web_contents() const {
+ return static_cast<WebContentsImpl*>(shell()->web_contents());
+ }
+
private:
FrameTreeVisualizer visualizer_;
};
« no previous file with comments | « content/DEPS ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698