#include "content/public/test/content_browser_test_shell_main_delegate.h"
#include <optional>
#include "base/test/task_environment.h"
#include "content/public/test/content_browser_test_content_browser_client.h"
#include "content/shell/browser/shell_content_browser_client.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
namespace content {
ContentBrowserTestShellMainDelegate::ContentBrowserTestShellMainDelegate()
: … { … }
ContentBrowserTestShellMainDelegate::~ContentBrowserTestShellMainDelegate() =
default;
#if BUILDFLAG(IS_CHROMEOS_LACROS)
std::optional<int> ContentBrowserTestShellMainDelegate::PostEarlyInitialization(
InvokedIn invoked_in) {
if (absl::holds_alternative<InvokedInBrowserProcess>(invoked_in)) {
lacros_service_ = std::make_unique<chromeos::LacrosService>();
}
ShellMainDelegate::PostEarlyInitialization(invoked_in);
return std::nullopt;
}
#endif
void ContentBrowserTestShellMainDelegate::CreateThreadPool(
std::string_view name) { … }
ContentBrowserClient*
ContentBrowserTestShellMainDelegate::CreateContentBrowserClient() { … }
}