| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index a0ad854e231c6296469b8ee2a44639cf5c3b6ea8..188279cf8d24eb224f402fd73bb296b56a5f7175 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -104,6 +104,7 @@
|
| #include "components/pref_registry/pref_registry_syncable.h"
|
| #include "components/signin/core/common/profile_management_switches.h"
|
| #include "components/translate/core/common/translate_switches.h"
|
| +#include "components/url_fixer/url_fixer.h"
|
| #include "content/public/browser/browser_child_process_host.h"
|
| #include "content/public/browser/browser_main_parts.h"
|
| #include "content/public/browser/browser_ppapi_host.h"
|
| @@ -2279,6 +2280,14 @@ void ChromeContentBrowserClient::BrowserURLHandlerCreated(
|
| handler->AddHandlerPair(&HandleWebUI, &HandleWebUIReverse);
|
| }
|
|
|
| +GURL ChromeContentBrowserClient::FixupURL(const GURL& url) {
|
| + // WillHandleBrowserAboutURL calls url_fixer::FixupURL to ensure that about:
|
| + // URLs are rewritten to chrome:, but that call does other cleanup as well.
|
| + // Make sure this cleanup happens before the rewriting phase that determines
|
| + // the virtual URL.
|
| + return url_fixer::FixupURL(url.possibly_invalid_spec(), std::string());
|
| +}
|
| +
|
| void ChromeContentBrowserClient::ClearCache(RenderViewHost* rvh) {
|
| Profile* profile = Profile::FromBrowserContext(
|
| rvh->GetSiteInstance()->GetProcess()->GetBrowserContext());
|
|
|