use value from shell_resources.h
This commit is contained in:
parent
a3f85a93a0
commit
d12787303c
1 changed files with 3 additions and 6 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "components/devtools_discovery/basic_target_descriptor.h"
|
||||
#include "components/devtools_discovery/devtools_discovery_manager.h"
|
||||
#include "components/devtools_http_handler/devtools_http_handler.h"
|
||||
#include "content/grit/shell_resources.h"
|
||||
#include "content/public/browser/devtools_agent_host.h"
|
||||
#include "content/public/browser/devtools_frontend_host.h"
|
||||
#include "content/public/browser/favicon_status.h"
|
||||
|
@ -35,11 +36,6 @@ namespace brightray {
|
|||
|
||||
namespace {
|
||||
|
||||
// A hack here:
|
||||
// Copy from grit/shell_resources.h of chromium repository
|
||||
// since libcontentchromium doesn't expose content_shell resources.
|
||||
const int kIDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE = 25150;
|
||||
|
||||
class TCPServerSocketFactory
|
||||
: public devtools_http_handler::DevToolsHttpHandler::ServerSocketFactory {
|
||||
public:
|
||||
|
@ -113,8 +109,9 @@ DevToolsDelegate::~DevToolsDelegate() {
|
|||
}
|
||||
|
||||
std::string DevToolsDelegate::GetDiscoveryPageHTML() {
|
||||
LOG(WARNING) << IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE;
|
||||
return ResourceBundle::GetSharedInstance().GetRawDataResource(
|
||||
kIDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string();
|
||||
IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue