commit | eb6c1eee35043c34c59353f9f37e20b7bdf2aafe | [log] [tgz] |
---|---|---|
author | Patrick Monette <[email protected]> | Tue Feb 04 20:42:48 2020 |
committer | Commit Bot <[email protected]> | Tue Feb 04 20:42:48 2020 |
tree | 7ee9396a78bf0ed495728f487433af122e7d1144 | |
parent | 8990e350269e0adb57c6042af44d00474df21f3a [diff] [blame] |
Support creating the WorkerNode before the final script URL is available This CL adds WorkerNodeImpl::OnFinalResponseURLDetermined() so that the |url_| field can be set when it's value is available. Bug: 1048332 Change-Id: Ida299a8b587aa7753d30023e0d36d11907037d4a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036366 Commit-Queue: Patrick Monette <[email protected]> Reviewed-by: Sigurður Ásgeirsson <[email protected]> Cr-Commit-Position: refs/heads/master@{#738323}
diff --git a/components/performance_manager/worker_watcher.cc b/components/performance_manager/worker_watcher.cc index 7d843911..5f4637d 100644 --- a/components/performance_manager/worker_watcher.cc +++ b/components/performance_manager/worker_watcher.cc
@@ -103,8 +103,7 @@ const base::UnguessableToken& dev_tools_token) { auto worker_node = PerformanceManagerImpl::GetInstance()->CreateWorkerNode( browser_context_id_, WorkerNode::WorkerType::kShared, - process_node_source_->GetProcessNode(worker_process_id), instance.url(), - dev_tools_token); + process_node_source_->GetProcessNode(worker_process_id), dev_tools_token); bool inserted = shared_worker_nodes_.emplace(instance, std::move(worker_node)).second; DCHECK(inserted);