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

Unified Diff: android_webview/browser/aw_login_delegate.cc

Issue 2851673002: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: Created 3 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: android_webview/browser/aw_login_delegate.cc
diff --git a/android_webview/browser/aw_login_delegate.cc b/android_webview/browser/aw_login_delegate.cc
index 7ce8e704abb3e25c7bb9d3b8dc6e79de32e26418..a088ed953baa3dc3d41a25bed538efd6433b39ec 100644
--- a/android_webview/browser/aw_login_delegate.cc
+++ b/android_webview/browser/aw_login_delegate.cc
@@ -7,6 +7,7 @@
#include "android_webview/browser/aw_browser_context.h"
#include "base/android/jni_android.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/supports_user_data.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
@@ -52,7 +53,7 @@ AwLoginDelegate::AwLoginDelegate(net::AuthChallengeInfo* auth_info,
if (count == NULL) {
count = new UrlRequestAuthAttemptsData();
- request->SetUserData(kAuthAttemptsKey, count);
+ request->SetUserData(kAuthAttemptsKey, base::WrapUnique(count));
}
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
« no previous file with comments | « android_webview/browser/aw_contents_client_bridge_base.cc ('k') | android_webview/browser/aw_print_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698