2022-02-17 00:19:56 +01:00
|
|
|
diff --git content/public/browser/web_ui_controller_factory.h content/public/browser/web_ui_controller_factory.h
|
|
|
|
index eb068fb9bb42c..4e8e6a1a7abf4 100644
|
|
|
|
--- content/public/browser/web_ui_controller_factory.h
|
|
|
|
+++ content/public/browser/web_ui_controller_factory.h
|
|
|
|
@@ -47,9 +47,6 @@ class CONTENT_EXPORT WebUIControllerFactory {
|
|
|
|
virtual bool UseWebUIForURL(BrowserContext* browser_context,
|
|
|
|
const GURL& url) = 0;
|
|
|
|
|
|
|
|
- private:
|
|
|
|
- friend class ScopedWebUIControllerFactoryRegistration;
|
|
|
|
-
|
|
|
|
static void UnregisterFactoryForTesting(WebUIControllerFactory* factory);
|
|
|
|
};
|
|
|
|
|
2022-04-21 20:58:48 +02:00
|
|
|
diff --git content/public/browser/webui_config_map.h content/public/browser/webui_config_map.h
|
2022-08-23 03:37:40 +02:00
|
|
|
index 51eb1f14fd684..31ceb131d0290 100644
|
2022-04-21 20:58:48 +02:00
|
|
|
--- content/public/browser/webui_config_map.h
|
|
|
|
+++ content/public/browser/webui_config_map.h
|
2022-06-17 15:28:55 +02:00
|
|
|
@@ -60,6 +60,10 @@ class CONTENT_EXPORT WebUIConfigMap {
|
2022-05-19 12:28:44 +02:00
|
|
|
// Returns the size of the map, i.e. how many WebUIConfigs are registered.
|
|
|
|
size_t GetSizeForTesting() { return configs_map_.size(); }
|
2022-04-21 20:58:48 +02:00
|
|
|
|
|
|
|
+ WebUIControllerFactory* controller_factory() const {
|
|
|
|
+ return webui_controller_factory_.get();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
private:
|
|
|
|
void AddWebUIConfigImpl(std::unique_ptr<WebUIConfig> config);
|
|
|
|
|