Fix decoding of the DevTools remote debugging discovery page (fixes issue #2974)

This commit is contained in:
Mike Wiedenbauer 2020-06-30 14:43:48 +00:00 committed by Marshall Greenblatt
parent b3a8da9b25
commit 0dfefe391c
1 changed files with 2 additions and 3 deletions

View File

@ -132,9 +132,8 @@ CefDevToolsManagerDelegate::CreateNewTarget(const GURL& url) {
} }
std::string CefDevToolsManagerDelegate::GetDiscoveryPageHTML() { std::string CefDevToolsManagerDelegate::GetDiscoveryPageHTML() {
return ui::ResourceBundle::GetSharedInstance() return ui::ResourceBundle::GetSharedInstance().LoadDataResourceString(
.GetRawDataResource(IDR_CEF_DEVTOOLS_DISCOVERY_PAGE) IDR_CEF_DEVTOOLS_DISCOVERY_PAGE);
.as_string();
} }
bool CefDevToolsManagerDelegate::HasBundledFrontendResources() { bool CefDevToolsManagerDelegate::HasBundledFrontendResources() {