From 6fe0bad0e5215b8837e0673e60afc4b7c73cac21 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Fri, 14 Nov 2008 20:18:09 +0000 Subject: Add mimetypes on the "chrome-resource://" responses. This is necessary to get javascript debugger loading CSS, post-webkit-merge. http://code.google.com/p/chromium/issues/detail?id=4181 Review URL: http://codereview.chromium.org/10941 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5502 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_about_handler.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/browser_about_handler.cc') diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 2afa2bb..2beeffb 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -70,6 +70,10 @@ class AboutSource : public ChromeURLDataManager::DataSource { // the path we registered. virtual void StartDataRequest(const std::string& path, int request_id); + virtual std::string GetMimeType(const std::string&) const { + return "text/html"; + } + // Send the response data. void FinishDataRequest(const std::string& html, int request_id); -- cgit v1.1