Skip to content

Commit

Permalink
do not create a new UserScriptManager every time the accessor is called
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jul 23, 2021
1 parent 31de28a commit 24a7103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/extensions/electron_extension_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ ServiceWorkerManager* ElectronExtensionSystem::service_worker_manager() {
}

UserScriptManager* ElectronExtensionSystem::user_script_manager() {
return new UserScriptManager(browser_context_);
return user_script_manager_.get();
}

StateStore* ElectronExtensionSystem::state_store() {
Expand Down

0 comments on commit 24a7103

Please sign in to comment.