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

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

Issue 2252373002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: extensions/browser/guest_view/web_view/web_view_find_helper.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_find_helper.cc b/extensions/browser/guest_view/web_view/web_view_find_helper.cc
index 82a335f8c2f0d61c3bc55afee64118b68d901d35..63932a0c455bca76e0686ea422791896f94daa3b 100644
--- a/extensions/browser/guest_view/web_view/web_view_find_helper.cc
+++ b/extensions/browser/guest_view/web_view/web_view_find_helper.cc
@@ -41,8 +41,8 @@ void WebViewFindHelper::DispatchFindUpdateEvent(bool canceled,
args->SetBoolean(webview::kFindCanceled, canceled);
args->SetBoolean(webview::kFindFinalUpdate, final_update);
DCHECK(webview_guest_);
- webview_guest_->DispatchEventToView(base::WrapUnique(
- new GuestViewEvent(webview::kEventFindReply, std::move(args))));
+ webview_guest_->DispatchEventToView(base::MakeUnique<GuestViewEvent>(
+ webview::kEventFindReply, std::move(args)));
}
void WebViewFindHelper::EndFindSession(int session_request_id, bool canceled) {

Powered by Google App Engine
This is Rietveld 408576698