From 6de74456d80f1f458509ec61c353b7ba2c728b84 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 25 Feb 2009 18:04:59 +0000 Subject: Delete the ViewSourceTabContents. This removes all the tab contents type stuff for view source mode. The RenderViewHostManager now automatically switches RenderViews when we turn view source mode on or off to get the desired effect. I also moved some instances of hardcoded schemes into chrome_constants.h, and renamed RendererCreated/Ready/Gone to RenderViewCreated/Ready/Gone to reflect what they actually mean. Review URL: http://codereview.chromium.org/28089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10346 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete/autocomplete.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/browser/autocomplete') diff --git a/chrome/browser/autocomplete/autocomplete.cc b/chrome/browser/autocomplete/autocomplete.cc index 5b031f527..631aebd 100644 --- a/chrome/browser/autocomplete/autocomplete.cc +++ b/chrome/browser/autocomplete/autocomplete.cc @@ -20,6 +20,7 @@ #include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" +#include "chrome/common/url_constants.h" #include "googleurl/src/gurl.h" #include "googleurl/src/url_canon_ip.h" #include "grit/generated_resources.h" @@ -118,8 +119,9 @@ AutocompleteInput::Type AutocompleteInput::Parse(const std::wstring& text, // reach the renderer or else the renderer handles internally without // reaching the URLRequest logic. We thus won't catch these above, but we // should still claim to handle them. - if ((parsed_scheme == L"view-source") || (parsed_scheme == L"javascript") || - (parsed_scheme == L"data")) + if (LowerCaseEqualsASCII(parsed_scheme, chrome::kViewSourceScheme) || + LowerCaseEqualsASCII(parsed_scheme, chrome::kJavaScriptScheme) || + LowerCaseEqualsASCII(parsed_scheme, chrome::kDataScheme)) return URL; // Finally, check and see if the user has explicitly opened this scheme as -- cgit v1.1