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

Unified Diff: ios/web/webui/url_data_manager_ios_backend.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
« no previous file with comments | « ios/web/webui/url_data_manager_ios_backend.h ('k') | ios/web/webui/url_data_source_ios_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/url_data_manager_ios_backend.mm
diff --git a/ios/web/webui/url_data_manager_ios_backend.mm b/ios/web/webui/url_data_manager_ios_backend.mm
index ce3e2790dd1d1e94438ce262806d6a3bdd9f67b7..5ee98be9fc2e21cd8d8ae878089ea0193d7393ce 100644
--- a/ios/web/webui/url_data_manager_ios_backend.mm
+++ b/ios/web/webui/url_data_manager_ios_backend.mm
@@ -12,6 +12,7 @@
#include "base/debug/alias.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memory/weak_ptr.h"
@@ -397,10 +398,10 @@ URLDataManagerIOSBackend::~URLDataManagerIOSBackend() {
}
// static
-scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
+std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>
URLDataManagerIOSBackend::CreateProtocolHandler(BrowserState* browser_state) {
DCHECK(browser_state);
- return make_scoped_ptr(new ChromeProtocolHandler(
+ return base::WrapUnique(new ChromeProtocolHandler(
browser_state, browser_state->IsOffTheRecord()));
}
« no previous file with comments | « ios/web/webui/url_data_manager_ios_backend.h ('k') | ios/web/webui/url_data_source_ios_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698