From f28f03a32fb6503a1f2387087c4e9cc2957caa24 Mon Sep 17 00:00:00 2001 From: amistry Date: Thu, 26 Nov 2015 20:04:01 -0800 Subject: Get rid of an unnecessary StringPiece->std::string conversion. Review URL: https://codereview.chromium.org/1479713002 Cr-Commit-Position: refs/heads/master@{#361949} --- extensions/common/features/json_feature_provider_source.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'extensions/common/features') 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 value(base::JSONReader::ReadAndReturnError( -- cgit v1.1