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

Unified Diff: ios/chrome/browser/net/retryable_url_fetcher.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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: ios/chrome/browser/net/retryable_url_fetcher.mm
diff --git a/ios/chrome/browser/net/retryable_url_fetcher.mm b/ios/chrome/browser/net/retryable_url_fetcher.mm
index 8269ca6df28d5b63d9a8b2c3b8b19340325a2365..87aca5337aa6a4abe6c8f9a0409e6665b28a78b4 100644
--- a/ios/chrome/browser/net/retryable_url_fetcher.mm
+++ b/ios/chrome/browser/net/retryable_url_fetcher.mm
@@ -4,8 +4,9 @@
#import "ios/chrome/browser/net/retryable_url_fetcher.h"
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/sys_string_conversions.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_fetcher.h"
@@ -30,9 +31,9 @@ class URLRequestDelegate : public net::URLFetcherDelegate {
@implementation RetryableURLFetcher {
scoped_refptr<net::URLRequestContextGetter> requestContextGetter_;
- scoped_ptr<URLRequestDelegate> fetcherDelegate_;
- scoped_ptr<net::URLFetcher> fetcher_;
- scoped_ptr<net::BackoffEntry> backoffEntry_;
+ std::unique_ptr<URLRequestDelegate> fetcherDelegate_;
+ std::unique_ptr<net::URLFetcher> fetcher_;
+ std::unique_ptr<net::BackoffEntry> backoffEntry_;
int retryCount_;
id<RetryableURLFetcherDelegate> delegate_; // Weak.
}
« no previous file with comments | « ios/chrome/browser/net/proxy_service_factory.cc ('k') | ios/chrome/browser/net/retryable_url_fetcher_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698