diff options
author | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-31 22:49:46 +0000 |
---|---|---|
committer | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-31 22:49:46 +0000 |
commit | 9cb6c306a5910d195ad3c05a154ca15c32f27e05 (patch) | |
tree | 3a5f060960d61f2184202f08f6716aa6582a7696 /components/dom_distiller | |
parent | 56c87e8f06f71487477e0b43003f1c624fd57f37 (diff) | |
download | chromium_src-9cb6c306a5910d195ad3c05a154ca15c32f27e05.zip chromium_src-9cb6c306a5910d195ad3c05a154ca15c32f27e05.tar.gz chromium_src-9cb6c306a5910d195ad3c05a154ca15c32f27e05.tar.bz2 |
Fix scheme-based URLDataSource lookup.
The result of content::URLDataSource::GetSource() is used as a key to the
content::URLDataManagerBackend for when looking up sources.
Previously, this has always been the hostname of the URL used to access the
data source, but after r247187 landed, this source name was also used for a
scheme (chrome-distiller://).
This CL adds a requirement for the source name to include "://" as a suffix
for the return value from GetSource() for scheme-based sources,
so for chrome-distiller it becomes
"chrome-distiller://".
BUG=338997
Review URL: https://codereview.chromium.org/135273013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248295 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/dom_distiller')
-rw-r--r-- | components/dom_distiller/content/dom_distiller_viewer_source.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/dom_distiller/content/dom_distiller_viewer_source.cc b/components/dom_distiller/content/dom_distiller_viewer_source.cc index ec1751d..2f23a07 100644 --- a/components/dom_distiller/content/dom_distiller_viewer_source.cc +++ b/components/dom_distiller/content/dom_distiller_viewer_source.cc @@ -102,7 +102,9 @@ DomDistillerViewerSource::DomDistillerViewerSource( DomDistillerViewerSource::~DomDistillerViewerSource() {} -std::string DomDistillerViewerSource::GetSource() const { return scheme_; } +std::string DomDistillerViewerSource::GetSource() const { + return scheme_ + "://"; +} void DomDistillerViewerSource::StartDataRequest( const std::string& path, |