Fix loading of DevTools frontend from chrome-devtools scheme (issue #1095).

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1509 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-11-07 22:04:38 +00:00
parent cb5b5b43f5
commit 98369167d7
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ std::string CefDevToolsDelegate::GetDevToolsURL(content::RenderViewHost* rvh,
std::string page_id = binding_->GetIdentifier(rvh);
std::string host = http_scheme ?
base::StringPrintf("http://localhost:%d/devtools/", port) :
base::StringPrintf("%s://%s/devtools/", chrome::kChromeDevToolsScheme,
base::StringPrintf("%s://%s/", chrome::kChromeDevToolsScheme,
scheme::kChromeDevToolsHost);
return base::StringPrintf(

View File

@ -12,7 +12,7 @@ namespace scheme {
void AddInternalSchemes(std::vector<std::string>* standard_schemes) {
static CefContentClient::SchemeInfo schemes[] = {
{ chrome::kChromeUIScheme, true, true, true },
{ chrome::kChromeDevToolsScheme, true, true, false }
{ chrome::kChromeDevToolsScheme, true, false, true }
};
CefContentClient* client = CefContentClient::Get();