Index: content/browser/webui/url_data_manager_backend.cc |
diff --git a/content/browser/webui/url_data_manager_backend.cc b/content/browser/webui/url_data_manager_backend.cc |
index 128e02375be34ef591ce7b6277338e08298f5619..d49057c8f5fb144d799ce035b1577b3b1092aa91 100644 |
--- a/content/browser/webui/url_data_manager_backend.cc |
+++ b/content/browser/webui/url_data_manager_backend.cc |
@@ -76,10 +76,16 @@ void URLToRequest(const GURL& url, std::string* source_name, |
return; |
} |
- // Our input looks like: chrome://source_name/extra_bits?foo . |
- // So the url's "host" is our source, and everything after the host is |
- // the path. |
- source_name->assign(url.host()); |
+ if (url.SchemeIs(chrome::kDomDistillerScheme)) { |
+ // Our input looks like: chrome-distiller://some-entry , so the scheme of |
+ // the URL is the source name. |
+ source_name->assign(chrome::kDomDistillerScheme); |
+ } else { |
+ // Our input looks like: chrome://source_name/extra_bits?foo . |
+ // So the url's "host" is our source, and everything after the host is |
+ // the path. |
+ source_name->assign(url.host()); |
+ } |
const std::string& spec = url.possibly_invalid_spec(); |
const url_parse::Parsed& parsed = url.parsed_for_possibly_invalid_spec(); |