Index: headless/lib/browser/headless_browser_main_parts.cc |
diff --git a/headless/lib/browser/headless_browser_main_parts.cc b/headless/lib/browser/headless_browser_main_parts.cc |
index 9781e39905ca1d08b9ffda56a3981dde5e7c2cc6..8a92222bc3df318873f6bf45a8fe26a5136ab691 100644 |
--- a/headless/lib/browser/headless_browser_main_parts.cc |
+++ b/headless/lib/browser/headless_browser_main_parts.cc |
@@ -5,7 +5,7 @@ |
#include "headless/lib/browser/headless_browser_main_parts.h" |
#include "components/devtools_http_handler/devtools_http_handler.h" |
-#include "headless/lib/browser/headless_browser_context.h" |
+#include "headless/lib/browser/headless_browser_context_impl.h" |
#include "headless/lib/browser/headless_browser_impl.h" |
#include "headless/lib/browser/headless_devtools.h" |
#include "headless/lib/browser/headless_screen.h" |
@@ -32,7 +32,7 @@ HeadlessBrowserMainParts::HeadlessBrowserMainParts(HeadlessBrowserImpl* browser) |
HeadlessBrowserMainParts::~HeadlessBrowserMainParts() {} |
void HeadlessBrowserMainParts::PreMainMessageLoopRun() { |
- browser_context_.reset(new HeadlessBrowserContext(browser_->options())); |
+ browser_context_.reset(new HeadlessBrowserContextImpl(browser_->options())); |
if (browser_->options()->devtools_endpoint.address().IsValid()) { |
devtools_http_handler_ = |
CreateLocalDevToolsHttpHandler(browser_context_.get()); |
@@ -46,7 +46,8 @@ void HeadlessBrowserMainParts::PostMainMessageLoopRun() { |
PlatformExit(); |
} |
-HeadlessBrowserContext* HeadlessBrowserMainParts::browser_context() const { |
+HeadlessBrowserContextImpl* HeadlessBrowserMainParts::default_browser_context() |
+ const { |
return browser_context_.get(); |
} |