DescriptionUserScriptMaster::ScriptReloader chooses to make a plain pointer to a
UserScriptList from UserScriptMaster. This leads to problems:
- What if master goes away?
- What if the UserScriptList is modified, as in
UserScriptMaster::OnExtensionLoaded?
Fix this by making the script loading process in UserScriptMaster much simpler:
UserScriptMaster calls LoadScriptsOnFile thread, and uses the result, using a
weak pointer.
Added bonus: Two fewer ref-counted objects! 50 fewer lines of code! Less script loading!
BUG=383973
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282361
Patch Set 1 : #
Total comments: 4
Patch Set 2 : #
Messages
Total messages: 7 (0 generated)
|