// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "net/base/request_priority.h"
context_.set_job_factory(&job_factory_);
context_.Init();
- request_.reset(new URLRequest(
- GURL("data:test"), DEFAULT_PRIORITY, &delegate_, &context_));
+ request_ = context_.CreateRequest(
+ GURL("data:test"), DEFAULT_PRIORITY, &delegate_, NULL);
}
void StartRequest(const HttpRequestHeaders* headers) {