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

Unified Diff: components/web_view/url_request_cloneable.cc

Issue 1391963004: Correctly record and pass around navigation start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « components/web_view/url_request_cloneable.h ('k') | components/web_view/web_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/url_request_cloneable.cc
diff --git a/components/web_view/url_request_cloneable.cc b/components/web_view/url_request_cloneable.cc
index 4ee870aa5f7b7cee5cd6964386401fcfc93390b2..db601a5213b924e5e3fb31e36b1cf32d70be1ac4 100644
--- a/components/web_view/url_request_cloneable.cc
+++ b/components/web_view/url_request_cloneable.cc
@@ -24,7 +24,9 @@ URLRequestCloneable::URLRequestCloneable(mojo::URLRequestPtr original_request)
auto_follow_redirects_(original_request->auto_follow_redirects),
bypass_cache_(original_request->bypass_cache),
original_body_null_(original_request->body.is_null()),
- body_(original_request->body.size()) {
+ body_(original_request->body.size()),
+ originating_time_(base::TimeTicks::FromInternalValue(
+ original_request->originating_time_ticks)) {
// TODO(erg): Maybe we can do some sort of async copy here?
for (size_t i = 0; i < original_request->body.size(); ++i) {
mojo::common::BlockingCopyToString(original_request->body[i].Pass(),
@@ -71,6 +73,8 @@ mojo::URLRequestPtr URLRequestCloneable::Clone() const {
}
}
+ request->originating_time_ticks = originating_time_.ToInternalValue();
+
return request.Pass();
}
« no previous file with comments | « components/web_view/url_request_cloneable.h ('k') | components/web_view/web_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698