diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 00:28:34 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 00:28:34 +0000 |
commit | 2dea04cdfc632bfe29d7ffb436827ea2726ec092 (patch) | |
tree | 519bcd708837a17fa5fb947451bc1e65e95443bf /net/base/registry_controlled_domain.cc | |
parent | c86288eec35b7718bdd01e7faefeb837b6bd8903 (diff) | |
download | chromium_src-2dea04cdfc632bfe29d7ffb436827ea2726ec092.zip chromium_src-2dea04cdfc632bfe29d7ffb436827ea2726ec092.tar.gz chromium_src-2dea04cdfc632bfe29d7ffb436827ea2726ec092.tar.bz2 |
Make the net resource interface use StringPiece instead of std::string. This means we can point directly into the resource in the binary, instead of copying. This makes sense for the TLD data, which doesn't need to be copied around.
Review URL: http://codereview.chromium.org/11296
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/registry_controlled_domain.cc')
-rw-r--r-- | net/base/registry_controlled_domain.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/registry_controlled_domain.cc b/net/base/registry_controlled_domain.cc index 3f4f024..f98a3f3 100644 --- a/net/base/registry_controlled_domain.cc +++ b/net/base/registry_controlled_domain.cc @@ -296,7 +296,7 @@ void RegistryControlledDomainService::UseDomainData(const std::string& data) { } void RegistryControlledDomainService::Init() { - domain_data_ = NetModule::GetResource(IDR_EFFECTIVE_TLD_NAMES); + domain_data_ = NetModule::GetResource(IDR_EFFECTIVE_TLD_NAMES).as_string(); if (domain_data_.empty()) { // The resource file isn't present for some unit tests, for example. Fall // back to a tiny, basic list of rules in that case. |