diff options
author | Michal Klocek <michal.klocek@qt.io> | 2023-01-05 00:03:09 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2023-02-21 19:19:48 +0100 |
commit | 91a6b1494f0291e5be618f02ed2f1f5e0a81eef9 (patch) | |
tree | 8ed3a1761fc300aadd78903bdf85a192607212d9 /src | |
parent | 5ddcad38f78b46b29320c7b349fc52efb0d7516b (diff) |
Minor. Small cleanup of qt webui factory
Change-Id: I421948a1be346940c7d87873f56e2944e61ebbd8
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/net/webui_controller_factory_qt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/net/webui_controller_factory_qt.cpp b/src/core/net/webui_controller_factory_qt.cpp index 0551d9be7..edfe9ade2 100644 --- a/src/core/net/webui_controller_factory_qt.cpp +++ b/src/core/net/webui_controller_factory_qt.cpp @@ -86,11 +86,11 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI *web_ui, Profile *profile, co // This will get called a lot to check all URLs, so do a quick check of other // schemes to filter out most URLs. if (!content::HasWebUIScheme(url)) - return NULL; + return nullptr; // We must compare hosts only since some of the Web UIs append extra stuff // after the host name. - if (url.host() == chrome::kChromeUINetInternalsHost) + if (url.host_piece() == chrome::kChromeUINetInternalsHost) return &NewWebUI<NetInternalsUI>; if (url.SchemeIs(content::kChromeDevToolsScheme)) { @@ -98,7 +98,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI *web_ui, Profile *profile, co return nullptr; return &NewWebUI<DevToolsUI>; } - if (url.host() == chrome::kChromeUIAccessibilityHost) + if (url.host_piece() == chrome::kChromeUIAccessibilityHost) return &NewWebUI<AccessibilityUI>; if (url.host_piece() == chrome::kChromeUIUserActionsHost) |