Commit 603003b7 authored by Patrick Monette's avatar Patrick Monette Committed by Commit Bot

Re-enable the initialization of SharedWorkerWatcher instances

Bug: 1013168
Change-Id: I47b8d316977615bf96637c60d2141aa0da9a3978
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1865606
Commit-Queue: Sigurður Ásgeirsson <siggi@chromium.org>
Reviewed-by: default avatarSigurður Ásgeirsson <siggi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707343}
parent 6ca43743
...@@ -152,11 +152,13 @@ void ChromeBrowserMainExtraPartsPerformanceManager::Observe( ...@@ -152,11 +152,13 @@ void ChromeBrowserMainExtraPartsPerformanceManager::Observe(
const content::NotificationDetails& details) { const content::NotificationDetails& details) {
switch (type) { switch (type) {
case chrome::NOTIFICATION_PROFILE_CREATED: { case chrome::NOTIFICATION_PROFILE_CREATED: {
// TODO(1013168): Create the worker watchers here. Profile* profile = content::Source<Profile>(source).ptr();
CreateSharedWorkerWatcher(profile);
break; break;
} }
case chrome::NOTIFICATION_PROFILE_DESTROYED: { case chrome::NOTIFICATION_PROFILE_DESTROYED: {
// TODO(1013168): Delete the worker watchers here. Profile* profile = content::Source<Profile>(source).ptr();
DeleteSharedWorkerWatcher(profile);
break; break;
} }
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment