From 0dfefe391c317b43e92733a416640b9ba6321aa5 Mon Sep 17 00:00:00 2001 From: Mike Wiedenbauer Date: Tue, 30 Jun 2020 14:43:48 +0000 Subject: [PATCH] Fix decoding of the DevTools remote debugging discovery page (fixes issue #2974) --- libcef/browser/devtools/devtools_manager_delegate.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libcef/browser/devtools/devtools_manager_delegate.cc b/libcef/browser/devtools/devtools_manager_delegate.cc index 41fa03342..ab4abbd00 100644 --- a/libcef/browser/devtools/devtools_manager_delegate.cc +++ b/libcef/browser/devtools/devtools_manager_delegate.cc @@ -132,9 +132,8 @@ CefDevToolsManagerDelegate::CreateNewTarget(const GURL& url) { } std::string CefDevToolsManagerDelegate::GetDiscoveryPageHTML() { - return ui::ResourceBundle::GetSharedInstance() - .GetRawDataResource(IDR_CEF_DEVTOOLS_DISCOVERY_PAGE) - .as_string(); + return ui::ResourceBundle::GetSharedInstance().LoadDataResourceString( + IDR_CEF_DEVTOOLS_DISCOVERY_PAGE); } bool CefDevToolsManagerDelegate::HasBundledFrontendResources() {