summaryrefslogtreecommitdiff
path: root/chromium/content/browser/webui/web_ui_url_loader_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/webui/web_ui_url_loader_factory.cc')
-rw-r--r--chromium/content/browser/webui/web_ui_url_loader_factory.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/content/browser/webui/web_ui_url_loader_factory.cc b/chromium/content/browser/webui/web_ui_url_loader_factory.cc
index fb7a2fe41f9..baa74f4c5e5 100644
--- a/chromium/content/browser/webui/web_ui_url_loader_factory.cc
+++ b/chromium/content/browser/webui/web_ui_url_loader_factory.cc
@@ -7,6 +7,7 @@
#include <map>
#include "base/bind.h"
+#include "base/debug/crash_logging.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/memory/ref_counted_memory.h"
@@ -17,7 +18,6 @@
#include "content/browser/blob_storage/blob_internals_url_loader.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/frame_host/render_frame_host_impl.h"
-#include "content/browser/histogram_internals_url_loader.h"
#include "content/browser/resource_context_impl.h"
#include "content/browser/storage_partition_impl.h"
#include "content/browser/webui/network_error_url_loader.h"
@@ -257,6 +257,11 @@ class WebUIURLLoaderFactory : public network::mojom::URLLoaderFactory,
if (!allowed_hosts_.empty() &&
(!request.url.has_host() ||
allowed_hosts_.find(request.url.host()) == allowed_hosts_.end())) {
+ // Temporary reporting the bad WebUI host for for http://crbug.com/837328.
+ static auto* crash_key = base::debug::AllocateCrashKeyString(
+ "webui_url", base::debug::CrashKeySize::Size64);
+ base::debug::SetCrashKeyString(crash_key, request.url.spec());
+
DVLOG(1) << "Bad host: \"" << request.url.host() << '"';
ReceivedBadMessage(render_frame_host_->GetProcess(),
bad_message::WEBUI_BAD_HOST_ACCESS);
@@ -280,11 +285,6 @@ class WebUIURLLoaderFactory : public network::mojom::URLLoaderFactory,
return;
}
- if (request.url.host_piece() == kChromeUIHistogramHost) {
- StartHistogramInternalsURLLoader(request, std::move(client));
- return;
- }
-
// We pass the FrameTreeNode ID to get to the WebContents because requests
// from frames can happen while the RFH is changed for a cross-process
// navigation. The URLDataSources just need the WebContents; the specific