Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(882)

Unified Diff: content/browser/webui/url_data_manager_backend.cc

Issue 2867853002: Make the new WebUI's code handle all webui schemes, instead of just chrome://. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/webui/url_data_manager_backend.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/url_data_manager_backend.cc
diff --git a/content/browser/webui/url_data_manager_backend.cc b/content/browser/webui/url_data_manager_backend.cc
index 861261846dd40bea82ad27dd6746a429dbb738f8..d2e6f4b0d53e491ed20bbd8d697b662390520313 100644
--- a/content/browser/webui/url_data_manager_backend.cc
+++ b/content/browser/webui/url_data_manager_backend.cc
@@ -700,6 +700,13 @@ void URLDataManagerBackend::URLToRequestPath(const GURL& url,
path->assign(spec.substr(offset));
}
+std::vector<std::string> URLDataManagerBackend::GetWebUISchemes() {
+ std::vector<std::string> schemes;
+ schemes.push_back(kChromeUIScheme);
+ GetContentClient()->browser()->GetAdditionalWebUISchemes(&schemes);
+ return schemes;
+}
+
namespace {
class DevToolsJobFactory
« no previous file with comments | « content/browser/webui/url_data_manager_backend.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698