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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2962113002: Updates to Server-Timing in accordance with with spec changes (Closed)
Patch Set: Created 3 years, 6 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/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 2c7c2a1c7da4a7b93e34f0c5fe81c9b86e6f85bf..fd8f941e6776aef53fa64c62c6ec1a2006d4f3ee 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -456,18 +456,6 @@ void FrameFetchContext::DispatchDidReceiveResponse(
// It is essential that inspector gets resource response BEFORE console.
GetFrame()->Console().ReportResourceResponseReceived(document_loader,
identifier, response);
-
- // MainResource responses were already added, skip them here.
- if (RuntimeEnabledFeatures::ServerTimingEnabled() &&
- resource->GetType() != Resource::kMainResource &&
- GetFrame()->GetDocument() && GetFrame()->GetDocument()->domWindow()) {
- LocalDOMWindow* localDOMWindow = GetFrame()->GetDocument()->domWindow();
- DOMWindowPerformance::performance(*localDOMWindow)
- ->AddServerTiming(response,
- localDOMWindow->HasLoadEventFired()
- ? PerformanceBase::ShouldAddToBuffer::Never
- : PerformanceBase::ShouldAddToBuffer::Always);
- }
}
void FrameFetchContext::DispatchDidReceiveData(unsigned long identifier,

Powered by Google App Engine
This is Rietveld 408576698