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

Unified Diff: extensions/browser/guest_view/web_view/web_view_permission_helper.cc

Issue 1641563002: Remove linked_ptr usage in //base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase, really Created 4 years, 11 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 | « extensions/browser/guest_view/web_view/web_view_guest_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/web_view/web_view_permission_helper.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_permission_helper.cc b/extensions/browser/guest_view/web_view/web_view_permission_helper.cc
index d8c78067445b5baa858e58f2eea1c8c9b15d55c8..3ce5dd9e62eb3e2e1f3b1f499826c7cdc678e352 100644
--- a/extensions/browser/guest_view/web_view/web_view_permission_helper.cc
+++ b/extensions/browser/guest_view/web_view/web_view_permission_helper.cc
@@ -334,20 +334,20 @@ int WebViewPermissionHelper::RequestPermission(
args->SetInteger(webview::kRequestId, request_id);
switch (permission_type) {
case WEB_VIEW_PERMISSION_TYPE_NEW_WINDOW: {
- web_view_guest_->DispatchEventToView(
- new GuestViewEvent(webview::kEventNewWindow, std::move(args)));
+ web_view_guest_->DispatchEventToView(make_scoped_ptr(
+ new GuestViewEvent(webview::kEventNewWindow, std::move(args))));
break;
}
case WEB_VIEW_PERMISSION_TYPE_JAVASCRIPT_DIALOG: {
- web_view_guest_->DispatchEventToView(
- new GuestViewEvent(webview::kEventDialog, std::move(args)));
+ web_view_guest_->DispatchEventToView(make_scoped_ptr(
+ new GuestViewEvent(webview::kEventDialog, std::move(args))));
break;
}
default: {
args->SetString(webview::kPermission,
PermissionTypeToString(permission_type));
- web_view_guest_->DispatchEventToView(new GuestViewEvent(
- webview::kEventPermissionRequest, std::move(args)));
+ web_view_guest_->DispatchEventToView(make_scoped_ptr(new GuestViewEvent(
+ webview::kEventPermissionRequest, std::move(args))));
break;
}
}
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698