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

Unified Diff: android_webview/native/aw_web_contents_delegate.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
« no previous file with comments | « android_webview/native/aw_settings.h ('k') | android_webview/native/aw_web_resource_response_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_web_contents_delegate.cc
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index 3fa957193b1742beb5d77fd4a1aa1f498ca8b188..612ae2d404ea4d7cea1ba83f1c1774a54fb6f4ea 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -14,6 +14,7 @@
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "base/lazy_instance.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -148,7 +149,7 @@ void AwWebContentsDelegate::AddNewContents(WebContents* source,
// until then, and when the callback is made we will swap the WebContents
// out into the new AwContents.
AwContents::FromWebContents(source)->SetPendingWebContentsForPopup(
- make_scoped_ptr(new_contents));
+ base::WrapUnique(new_contents));
// Hide the WebContents for the pop up now, we will show it again
// when the user calls us back with an AwContents to use to show it.
new_contents->WasHidden();
@@ -233,11 +234,11 @@ void AwWebContentsDelegate::RequestMediaAccessPermission(
if (!aw_contents) {
callback.Run(content::MediaStreamDevices(),
content::MEDIA_DEVICE_FAILED_DUE_TO_SHUTDOWN,
- scoped_ptr<content::MediaStreamUI>());
+ std::unique_ptr<content::MediaStreamUI>());
return;
}
aw_contents->GetPermissionRequestHandler()->SendRequest(
- scoped_ptr<AwPermissionRequestDelegate>(
+ std::unique_ptr<AwPermissionRequestDelegate>(
new MediaAccessPermissionRequest(request, callback)));
}
« no previous file with comments | « android_webview/native/aw_settings.h ('k') | android_webview/native/aw_web_resource_response_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698