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

Unified Diff: chrome/browser/extensions/api/gcd_private/privet_v3_session.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/api/gcd_private/privet_v3_session.cc
diff --git a/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc b/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
index 6074cd87b71e7eb56ec497bd495b2d948cace4eb..957dcc2a4ebd85d0b72881d7b5a9f94e319086bd 100644
--- a/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
+++ b/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
@@ -86,7 +86,7 @@ bool ContainsString(const base::DictionaryValue& dictionary,
return false;
}
-scoped_ptr<base::DictionaryValue> GetJson(const net::URLFetcher* source) {
+std::unique_ptr<base::DictionaryValue> GetJson(const net::URLFetcher* source) {
if (!source->GetStatus().is_success())
return nullptr;
@@ -128,7 +128,7 @@ class PrivetV3Session::FetcherDelegate : public net::URLFetcherDelegate {
void ReplyAndDestroyItself(Result result, const base::DictionaryValue& value);
void OnTimeout();
- scoped_ptr<net::URLFetcher> url_fetcher_;
+ std::unique_ptr<net::URLFetcher> url_fetcher_;
base::WeakPtr<PrivetV3Session> session_;
MessageCallback callback_;
@@ -152,7 +152,7 @@ void PrivetV3Session::FetcherDelegate::OnURLFetchComplete(
<< ", error: " << source->GetStatus().error()
<< ", response code: " << source->GetResponseCode();
- scoped_ptr<base::DictionaryValue> value = GetJson(source);
+ std::unique_ptr<base::DictionaryValue> value = GetJson(source);
if (!value) {
return ReplyAndDestroyItself(Result::STATUS_CONNECTIONERROR,
base::DictionaryValue());

Powered by Google App Engine
This is Rietveld 408576698