| Index: chrome/browser/local_discovery/privet_url_fetcher.cc
|
| diff --git a/chrome/browser/local_discovery/privet_url_fetcher.cc b/chrome/browser/local_discovery/privet_url_fetcher.cc
|
| index 0a76ed2bc4362b241b70e6924bdb54746f703f66..96726df3f23cfaff68c2a3ebac41e81a3572bcad 100644
|
| --- a/chrome/browser/local_discovery/privet_url_fetcher.cc
|
| +++ b/chrome/browser/local_discovery/privet_url_fetcher.cc
|
| @@ -303,10 +303,7 @@ void PrivetURLFetcher::OnURLFetchCompleteParseData(
|
| }
|
|
|
| base::JSONReader json_reader(base::JSON_ALLOW_TRAILING_COMMAS);
|
| - scoped_ptr<base::Value> value;
|
| -
|
| - value.reset(json_reader.ReadToValue(response_str));
|
| -
|
| + scoped_ptr<base::Value> value = json_reader.ReadToValue(response_str);
|
| if (!value) {
|
| delegate_->OnError(this, JSON_PARSE_ERROR);
|
| return;
|
|
|