content: Fix WebContentsUserData for usage across components.

1354402
This commit is contained in:
deepak1556 2019-01-21 22:26:54 +05:30
parent a864167d46
commit 9439ac108d
16 changed files with 48 additions and 15 deletions

View file

@ -999,8 +999,7 @@ void WebContents::DevToolsOpened() {
// Inherit owner window in devtools when it doesn't have one.
auto* devtools = managed_web_contents()->GetDevToolsWebContents();
bool has_window =
devtools->GetUserData(NativeWindowRelay::kNativeWindowRelayUserDataKey);
bool has_window = devtools->GetUserData(NativeWindowRelay::UserDataKey());
if (owner_window() && !has_window)
handle->SetOwnerWindow(devtools, owner_window());