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

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

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: make ResourceTimingInfo ref-counted Created 3 years, 10 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/WorkerThreadableLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
index 70d417fbcc337f9098f74069ad38ca12dcd349ec..4edcbbd0a809be58d5350576e439be8b93a2d1db 100644
--- a/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp
@@ -413,7 +413,7 @@ void WorkerThreadableLoader::didReceiveResourceTiming(
DCHECK(!isMainThread());
if (!m_client)
return;
- std::unique_ptr<ResourceTimingInfo> info(
+ RefPtr<ResourceTimingInfo> info(
ResourceTimingInfo::adopt(std::move(timingData)));
WorkerGlobalScopePerformance::performance(*m_workerGlobalScope)
->addResourceTiming(*info);

Powered by Google App Engine
This is Rietveld 408576698