const char kEnableOffscreenRendering[] = "enable-offscreen-rendering";
#endif
+#if defined(BUILD_CHROME)
+const char kEnableChrome[] = "enable-chrome";
+#endif
+
#if BUILDFLAG(IS_TIZEN)
const char kDiscardableMemoryLimit[] = "discardable-memory-limit";
const char kDiscardableMemoryPurgeDelay[] = "discardable-memory-purge-delay";
extern const char kEnableOffscreenRendering[];
#endif
+#if defined(BUILD_CHROME)
+extern const char kEnableChrome[];
+#endif
+
#if BUILDFLAG(IS_TIZEN)
extern const char kDiscardableMemoryLimit[];
extern const char kDiscardableMemoryPurgeDelay[];
#include "ui/base/resource/scoped_startup_resource_bundle.h"
#include "ui/base/ui_base_switches.h"
+#if BUILDFLAG(IS_WIN) || defined(BUILD_CHROME)
+#include "base/base_switches.h"
+#endif
+
#if BUILDFLAG(IS_WIN)
#include <malloc.h>
#include <algorithm>
-#include "base/base_switches.h"
#include "base/files/important_file_writer_cleaner.h"
#include "base/win/atl.h"
#include "base/win/dark_mode_support.h"
}
std::optional<int> ChromeMainDelegate::BasicStartupComplete() {
+#if defined(BUILD_CHROME)
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(switches::kEnableChrome);
+#endif
+
#if BUILDFLAG(IS_CHROMEOS_ASH)
ash::BootTimesRecorder::Get()->SaveChromeMainStats();
#endif
void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
base::CommandLine* command_line,
int child_process_id) {
+#if defined(BUILD_CHROME)
+ command_line->AppendSwitch(switches::kEnableChrome);
+#endif
+
#if BUILDFLAG(IS_MAC)
std::unique_ptr<metrics::ClientInfo> client_info =
GoogleUpdateSettings::LoadMetricsClientInfo();