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

Unified Diff: mojo/services/html_viewer/weburlloader_impl.cc

Issue 453133002: Mojo: Generalize blink::URLRequest -> mojo::URLRequest conversion, and use it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin Created 6 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 | « mojo/services/html_viewer/html_document_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/weburlloader_impl.cc
diff --git a/mojo/services/html_viewer/weburlloader_impl.cc b/mojo/services/html_viewer/weburlloader_impl.cc
index 16f5950c2a6cf9b4b0d580f1957244f8d3a13fe3..39afbc2aadfb49204b86d0280b6f3df2fa0749c3 100644
--- a/mojo/services/html_viewer/weburlloader_impl.cc
+++ b/mojo/services/html_viewer/weburlloader_impl.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/thread_task_runner_handle.h"
#include "mojo/common/common_type_converters.h"
+#include "mojo/services/html_viewer/blink_url_request_type_converters.h"
#include "mojo/services/public/interfaces/network/network_service.mojom.h"
#include "net/base/net_errors.h"
#include "third_party/WebKit/public/platform/WebURLError.h"
@@ -65,11 +66,8 @@ void WebURLLoaderImpl::loadAsynchronously(const blink::WebURLRequest& request,
client_ = client;
url_ = request.url();
- URLRequestPtr url_request(URLRequest::New());
- url_request->url = String::From(url_);
- url_request->method = request.httpMethod().utf8();
+ URLRequestPtr url_request = URLRequest::From(request);
url_request->auto_follow_redirects = false;
- // TODO(darin): Copy other fields.
if (request.extraData()) {
WebURLRequestExtraData* extra_data =
« no previous file with comments | « mojo/services/html_viewer/html_document_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698