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

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: 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/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 51dc68b28d05797ce578194e621b42a3012bee48..7258c1342154ace7485080adbae524232610a895 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -457,18 +457,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,
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | third_party/WebKit/Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698