[OOBE] Dev overlay color mode switcher fixed dev image detection on DUT
Fix: b:261167699 Change-Id: If0dd1e61502b121f24063fbd01e82716d9213329 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4084904 Reviewed-by: Denis Kuznetsov <antrim@chromium.org> Commit-Queue: Simon Ziegltrum <ziegltrum@google.com> Cr-Commit-Position: refs/heads/main@{#1080314}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
646d52540b
commit
13bfd939c7
@ -576,11 +576,8 @@ OobeUI::OobeUI(content::WebUI* web_ui, const GURL& url)
|
||||
|
||||
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
||||
bool enable_debugger = command_line->HasSwitch(switches::kShowOobeDevOverlay);
|
||||
// TODO(crbug.com/1073095): Also enable for ChromeOS test images.
|
||||
// Enable for ChromeOS-on-linux for developers.
|
||||
bool test_mode = !base::SysInfo::IsRunningOnChromeOS();
|
||||
|
||||
if (enable_debugger && test_mode) {
|
||||
if (enable_debugger) {
|
||||
base::SysInfo::CrashIfChromeOSNonTestImage();
|
||||
AddWebUIHandler(std::make_unique<DebugOverlayHandler>());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user