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

Unified Diff: headless/lib/browser/headless_browser_context_impl.cc

Issue 2255133002: 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
« no previous file with comments | « no previous file | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_context_impl.cc
diff --git a/headless/lib/browser/headless_browser_context_impl.cc b/headless/lib/browser/headless_browser_context_impl.cc
index 2fb76e61febdc06ccffdb673fdc010a34b23cff4..375eb13283b401bfacada4bf464ec20f12b77357 100644
--- a/headless/lib/browser/headless_browser_context_impl.cc
+++ b/headless/lib/browser/headless_browser_context_impl.cc
@@ -382,9 +382,9 @@ HeadlessBrowserContext* HeadlessBrowserContext::Builder::Build() {
// context with mojo bindings.
if (!enable_http_and_https_if_mojo_used_) {
options_->protocol_handlers_[url::kHttpScheme] =
- base::WrapUnique(new BlackHoleProtocolHandler());
+ base::MakeUnique<BlackHoleProtocolHandler>();
options_->protocol_handlers_[url::kHttpsScheme] =
- base::WrapUnique(new BlackHoleProtocolHandler());
+ base::MakeUnique<BlackHoleProtocolHandler>();
}
}
« no previous file with comments | « no previous file | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698