diff options
author | amistry <amistry@chromium.org> | 2015-11-26 20:04:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-27 04:06:01 +0000 |
commit | f28f03a32fb6503a1f2387087c4e9cc2957caa24 (patch) | |
tree | a61f7fd12bb2bda5b12905be648a41c1ab265500 /extensions/common | |
parent | 84a04672876e262d54619b4a3786477d412262e8 (diff) | |
download | chromium_src-f28f03a32fb6503a1f2387087c4e9cc2957caa24.zip chromium_src-f28f03a32fb6503a1f2387087c4e9cc2957caa24.tar.gz chromium_src-f28f03a32fb6503a1f2387087c4e9cc2957caa24.tar.bz2 |
Get rid of an unnecessary StringPiece->std::string conversion.
Review URL: https://codereview.chromium.org/1479713002
Cr-Commit-Position: refs/heads/master@{#361949}
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/features/json_feature_provider_source.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/common/features/json_feature_provider_source.cc b/extensions/common/features/json_feature_provider_source.cc index 5f9dcb5..c41ecb7 100644 --- a/extensions/common/features/json_feature_provider_source.cc +++ b/extensions/common/features/json_feature_provider_source.cc @@ -18,9 +18,8 @@ JSONFeatureProviderSource::~JSONFeatureProviderSource() { } void JSONFeatureProviderSource::LoadJSON(int resource_id) { - const std::string& features_file = ResourceBundle::GetSharedInstance() - .GetRawDataResource(resource_id) - .as_string(); + const base::StringPiece features_file = + ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); int error_code = 0; std::string error_message; scoped_ptr<base::Value> value(base::JSONReader::ReadAndReturnError( |