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

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsers.cpp

Issue 2962113002: Updates to Server-Timing in accordance with with spec changes (Closed)
Patch Set: fix web-platform-tests Created 3 years, 5 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: third_party/WebKit/Source/platform/network/HTTPParsers.cpp
diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
index c4ab815cd4214e9e8ff5aa4aa8bba5e050c65297..6057e4367a42b07f212fe21e9b7d6cfbdec59365 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
@@ -880,12 +880,12 @@ std::unique_ptr<ServerTimingHeaderVector> ParseServerTimingHeader(
break;
}
- double duration = 0.0;
+ double value = 0.0;
String description = "";
if (tokenizer.Consume('=')) {
- StringView durationOutput;
- if (tokenizer.ConsumeToken(Mode::kNormal, durationOutput)) {
- duration = durationOutput.ToString().ToDouble();
+ StringView valueOutput;
+ if (tokenizer.ConsumeToken(Mode::kNormal, valueOutput)) {
+ value = valueOutput.ToString().ToDouble();
}
}
if (tokenizer.Consume(';')) {
@@ -893,7 +893,7 @@ std::unique_ptr<ServerTimingHeaderVector> ParseServerTimingHeader(
}
headers->push_back(WTF::MakeUnique<ServerTimingHeader>(
- metric.ToString(), duration, description));
+ metric.ToString(), value, description));
if (!tokenizer.Consume(',')) {
break;

Powered by Google App Engine
This is Rietveld 408576698