fix: devtools dock state with WCO on linux (#43490)

This commit is contained in:
Robo 2024-08-29 09:17:00 +09:00 committed by GitHub
parent 38512efd25
commit 41b8fdca5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -550,7 +550,7 @@ void InspectableWebContents::LoadCompleted() {
prefs.FindString("currentDockState");
base::RemoveChars(*current_dock_state, "\"", &dock_state_);
}
#if BUILDFLAG(IS_WIN)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
auto* api_web_contents = api::WebContents::From(GetWebContents());
if (api_web_contents) {
auto* win =