mirror of
https://github.com/aphrody-labs/cef.git
synced 2026-10-13 21:07:07 +00:00
- Windows SDK 10.0.28000.2270 is now required - CefRegisterExtension is deprecated due to https://crbug.com/40347662
17 lines
778 B
Diff
17 lines
778 B
Diff
diff --git chrome/browser/task_manager/sampling/task_manager_impl.cc chrome/browser/task_manager/sampling/task_manager_impl.cc
|
|
index 77d9f5de0702edb72901d78ffc47e0aa08695658..ae08c755f364871ce1a055df56f4030ec3bb8049 100644
|
|
--- chrome/browser/task_manager/sampling/task_manager_impl.cc
|
|
+++ chrome/browser/task_manager/sampling/task_manager_impl.cc
|
|
@@ -683,6 +683,11 @@ void TaskManagerImpl::StopUpdating() {
|
|
|
|
is_running_ = false;
|
|
|
|
+ // Drop any in-flight async callbacks (e.g. memory-dump replies and GPU
|
|
+ // video-memory stats) so they don't fire into a stopped task manager.
|
|
+ weak_ptr_factory_.InvalidateWeakPtrs();
|
|
+ waiting_for_memory_dump_ = false;
|
|
+
|
|
content::GetNetworkService()->EnableDataUseUpdates(false);
|
|
|
|
for (const auto& provider : task_providers_)
|