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

Unified Diff: chrome/browser/net/predictor_browsertest.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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: chrome/browser/net/predictor_browsertest.cc
diff --git a/chrome/browser/net/predictor_browsertest.cc b/chrome/browser/net/predictor_browsertest.cc
index 90034005b65bf0bc51bf27dd5def8beb675fd362..fb0163bf909e2a38587b8f9465cb7006391d9a57 100644
--- a/chrome/browser/net/predictor_browsertest.cc
+++ b/chrome/browser/net/predictor_browsertest.cc
@@ -545,8 +545,8 @@ class PredictorBrowserTest : public InProcessBrowserTest {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
net::URLRequestFilter::GetInstance()->AddHostnameInterceptor(
url.scheme(), url.host(),
- base::WrapUnique(new MatchingPortRequestInterceptor(
- url.EffectiveIntPort(), callback)));
+ base::MakeUnique<MatchingPortRequestInterceptor>(url.EffectiveIntPort(),
+ callback));
}
static void StopInterceptingHost(const GURL& url) {
@@ -1006,7 +1006,7 @@ IN_PROC_BROWSER_TEST_F(PredictorBrowserTest, PredictBasedOnSubframeRedirect) {
// TODO(csharrison): Possibly this is a bug in either net or Blink, and it
// might be worthwhile to investigate.
std::unique_ptr<net::EmbeddedTestServer> redirector =
- base::WrapUnique(new net::EmbeddedTestServer());
+ base::MakeUnique<net::EmbeddedTestServer>();
ASSERT_TRUE(redirector->Start());
NavigateToCrossSiteHtmlUrl(1 /* num_cors */, "" /* file_suffix */);
« no previous file with comments | « chrome/browser/net/errorpage_browsertest.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698