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

Unified Diff: components/autofill/core/browser/payments/payments_client.h

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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: components/autofill/core/browser/payments/payments_client.h
diff --git a/components/autofill/core/browser/payments/payments_client.h b/components/autofill/core/browser/payments/payments_client.h
index 0284f8fa9ce23a8509d6a5460de8ef9a1bea8077..417f17f2548ab5a53d2b6942cf57572d0d4a4e58 100644
--- a/components/autofill/core/browser/payments/payments_client.h
+++ b/components/autofill/core/browser/payments/payments_client.h
@@ -44,7 +44,7 @@ class PaymentsClientDelegate {
virtual void OnDidGetUploadDetails(
AutofillClient::PaymentsRpcResult result,
const base::string16& context_token,
- scoped_ptr<base::DictionaryValue> legal_message) = 0;
+ std::unique_ptr<base::DictionaryValue> legal_message) = 0;
// Returns the result of an upload request.
virtual void OnDidUploadCard(AutofillClient::PaymentsRpcResult result) = 0;
@@ -119,7 +119,8 @@ class PaymentsClient : public net::URLFetcherDelegate,
// Initiates a Payments request using the state in |request|. If
// |authenticate| is true, ensures that an OAuth token is avialble first.
// Takes ownership of |request|.
- void IssueRequest(scoped_ptr<PaymentsRequest> request, bool authenticate);
+ void IssueRequest(std::unique_ptr<PaymentsRequest> request,
+ bool authenticate);
// net::URLFetcherDelegate:
void OnURLFetchComplete(const net::URLFetcher* source) override;
@@ -148,13 +149,13 @@ class PaymentsClient : public net::URLFetcherDelegate,
PaymentsClientDelegate* const delegate_; // must outlive |this|.
// The current request.
- scoped_ptr<PaymentsRequest> request_;
+ std::unique_ptr<PaymentsRequest> request_;
// The fetcher being used to issue the current request.
- scoped_ptr<net::URLFetcher> url_fetcher_;
+ std::unique_ptr<net::URLFetcher> url_fetcher_;
// The current OAuth2 token request object.
- scoped_ptr<OAuth2TokenService::Request> access_token_request_;
+ std::unique_ptr<OAuth2TokenService::Request> access_token_request_;
// The OAuth2 token, or empty if not fetched.
std::string access_token_;
« no previous file with comments | « components/autofill/core/browser/name_field_unittest.cc ('k') | components/autofill/core/browser/payments/payments_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698