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

Unified Diff: headless/lib/headless_content_main_delegate.cc

Issue 2837093003: Revert of Add --headless flag to Windows (Closed)
Patch Set: Fix compilation issue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/headless_content_main_delegate.h ('k') | headless/public/headless_browser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/headless_content_main_delegate.cc
diff --git a/headless/lib/headless_content_main_delegate.cc b/headless/lib/headless_content_main_delegate.cc
index 8526274a3c0bb10061e7d9eedf241a568cac7503..ee1f6551d3214107c80955c87ad3e72f9b0c58be 100644
--- a/headless/lib/headless_content_main_delegate.cc
+++ b/headless/lib/headless_content_main_delegate.cc
@@ -22,6 +22,7 @@
#include "headless/lib/browser/headless_content_browser_client.h"
#include "headless/lib/headless_crash_reporter_client.h"
#include "headless/lib/headless_macros.h"
+#include "headless/lib/renderer/headless_content_renderer_client.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_switches.h"
#include "ui/gfx/switches.h"
@@ -32,10 +33,6 @@
#include "headless/embedded_resource_pak.h"
#endif
-#if !defined(CHROME_MULTIPLE_DLL_BROWSER)
-#include "headless/lib/renderer/headless_content_renderer_client.h"
-#endif
-
#if defined(OS_MACOSX)
#include "components/crash/content/app/crashpad.h"
#endif
@@ -189,8 +186,10 @@ void HeadlessContentMainDelegate::PreSandboxStartup() {
#else
if (command_line.HasSwitch(switches::kEnableLogging))
InitLogging(command_line);
-#endif // defined(OS_WIN)
+#endif
+#if !defined(OS_MACOSX)
InitCrashReporter(command_line);
+#endif // defined(OS_WIN)
InitializeResourceBundle();
}
@@ -278,23 +277,15 @@ void HeadlessContentMainDelegate::InitializeResourceBundle() {
content::ContentBrowserClient*
HeadlessContentMainDelegate::CreateContentBrowserClient() {
-#if defined(CHROME_MULTIPLE_DLL_CHILD)
- return nullptr;
-#else
browser_client_ =
base::MakeUnique<HeadlessContentBrowserClient>(browser_.get());
return browser_client_.get();
-#endif
}
content::ContentRendererClient*
HeadlessContentMainDelegate::CreateContentRendererClient() {
-#if defined(CHROME_MULTIPLE_DLL_BROWSER)
- return nullptr;
-#else
renderer_client_ = base::MakeUnique<HeadlessContentRendererClient>();
return renderer_client_.get();
-#endif
}
} // namespace headless
« no previous file with comments | « headless/lib/headless_content_main_delegate.h ('k') | headless/public/headless_browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698