We need to adapt the patch to friend BraveWalletService with that class and then adapt BraveWalletService to use the right methods. Chromium change: https://chromium.googlesource.com/chromium/src.git/+/a115a7598e5a0ff970e17e36624c1b5ead70049b commit a115a7598e5a0ff970e17e36624c1b5ead70049b Author: Kelvin Jiang <kelvinjiang@chromium.org> Date: Thu Feb 11 03:04:01 2021 +0000 [Extensions] Use one UserScriptManager class for all user scripts This CL merges DeclarativeUserScriptManager and ExtensionUserScriptManager into: UserScriptManager (USM). USM is owned by the ExtensionSystem. A USM was also added to the TestExtensionSystem. Bug: 1168627
22 lines
814 B
Diff
22 lines
814 B
Diff
diff --git a/extensions/browser/user_script_manager.h b/extensions/browser/user_script_manager.h
|
|
index aa6510c99e26c0700629c9f3e6c368cc742825fe..420e21f580750dff79a017146784c6eb9d21ed71 100644
|
|
--- a/extensions/browser/user_script_manager.h
|
|
+++ b/extensions/browser/user_script_manager.h
|
|
@@ -22,7 +22,7 @@
|
|
namespace content {
|
|
class BrowserContext;
|
|
}
|
|
-
|
|
+class BraveWalletService;
|
|
namespace extensions {
|
|
class UserScriptLoader;
|
|
|
|
@@ -50,6 +50,7 @@ class UserScriptManager : public ExtensionRegistryObserver {
|
|
WebUIUserScriptLoader* GetUserScriptLoaderForWebUI(const GURL& url);
|
|
|
|
private:
|
|
+ friend class ::BraveWalletService;
|
|
// ExtensionRegistryObserver implementation.
|
|
void OnExtensionLoaded(content::BrowserContext* browser_context,
|
|
const Extension* extension) override;
|