Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3452)

Unified Diff: chrome/browser/extensions/webstore_data_fetcher.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/webstore_data_fetcher.cc
diff --git a/chrome/browser/extensions/webstore_data_fetcher.cc b/chrome/browser/extensions/webstore_data_fetcher.cc
index 1ade331a9426cc04acce4e7dee97fa1741509142..1586b927385b471f3a6ae9387d1c71ebe2115ace 100644
--- a/chrome/browser/extensions/webstore_data_fetcher.cc
+++ b/chrome/browser/extensions/webstore_data_fetcher.cc
@@ -55,14 +55,15 @@ void WebstoreDataFetcher::Start() {
}
void WebstoreDataFetcher::OnJsonParseSuccess(
- scoped_ptr<base::Value> parsed_json) {
+ std::unique_ptr<base::Value> parsed_json) {
if (!parsed_json->IsType(base::Value::TYPE_DICTIONARY)) {
OnJsonParseFailure(kInvalidWebstoreResponseError);
return;
}
- delegate_->OnWebstoreResponseParseSuccess(scoped_ptr<base::DictionaryValue>(
- static_cast<base::DictionaryValue*>(parsed_json.release())));
+ delegate_->OnWebstoreResponseParseSuccess(
+ std::unique_ptr<base::DictionaryValue>(
+ static_cast<base::DictionaryValue*>(parsed_json.release())));
}
void WebstoreDataFetcher::OnJsonParseFailure(
@@ -73,7 +74,8 @@ void WebstoreDataFetcher::OnJsonParseFailure(
void WebstoreDataFetcher::OnURLFetchComplete(const net::URLFetcher* source) {
CHECK_EQ(webstore_data_url_fetcher_.get(), source);
- scoped_ptr<net::URLFetcher> fetcher(std::move(webstore_data_url_fetcher_));
+ std::unique_ptr<net::URLFetcher> fetcher(
+ std::move(webstore_data_url_fetcher_));
if (!fetcher->GetStatus().is_success() ||
fetcher->GetResponseCode() != 200) {
« no previous file with comments | « chrome/browser/extensions/webstore_data_fetcher.h ('k') | chrome/browser/extensions/webstore_data_fetcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698