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

Unified Diff: android_webview/browser/aw_cookie_access_policy.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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: android_webview/browser/aw_cookie_access_policy.cc
diff --git a/android_webview/browser/aw_cookie_access_policy.cc b/android_webview/browser/aw_cookie_access_policy.cc
index 5b5274a5cf35274ca04bb5e20becee3295046d6c..1dc3ba979a8d3cc3630ba83094c3a5f5fb291ad4 100644
--- a/android_webview/browser/aw_cookie_access_policy.cc
+++ b/android_webview/browser/aw_cookie_access_policy.cc
@@ -4,10 +4,10 @@
#include "android_webview/browser/aw_cookie_access_policy.h"
-#include "android_webview/browser/aw_contents_io_thread_client.h"
+#include <memory>
+#include "android_webview/browser/aw_contents_io_thread_client.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_request_info.h"
#include "net/base/net_errors.h"
@@ -47,7 +47,7 @@ void AwCookieAccessPolicy::SetShouldAcceptCookies(bool allow) {
bool AwCookieAccessPolicy::GetShouldAcceptThirdPartyCookies(
int render_process_id,
int render_frame_id) {
- scoped_ptr<AwContentsIoThreadClient> io_thread_client =
+ std::unique_ptr<AwContentsIoThreadClient> io_thread_client =
AwContentsIoThreadClient::FromID(render_process_id, render_frame_id);
if (!io_thread_client) {
return false;
« no previous file with comments | « android_webview/browser/aw_contents_io_thread_client.h ('k') | android_webview/browser/aw_dev_tools_discovery_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698