diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 18:04:59 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 18:04:59 +0000 |
commit | 6de74456d80f1f458509ec61c353b7ba2c728b84 (patch) | |
tree | 51912c23a1755d3aa8be422bfb7777fa7ef46860 /chrome/browser/history | |
parent | 24d2b8f01cca7f68cdb526c03a15f75a7feec35b (diff) | |
download | chromium_src-6de74456d80f1f458509ec61c353b7ba2c728b84.zip chromium_src-6de74456d80f1f458509ec61c353b7ba2c728b84.tar.gz chromium_src-6de74456d80f1f458509ec61c353b7ba2c728b84.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/history')
-rw-r--r-- | chrome/browser/history/history.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc index 839e3d1..49707cf 100644 --- a/chrome/browser/history/history.cc +++ b/chrome/browser/history/history.cc @@ -44,6 +44,7 @@ #include "chrome/common/l10n_util.h" #include "chrome/common/notification_service.h" #include "chrome/common/thumbnail_score.h" +#include "chrome/common/url_constants.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" @@ -571,12 +572,12 @@ bool HistoryService::CanAddURL(const GURL& url) const { if (!url.is_valid()) return false; - if (url.SchemeIs("javascript") || - url.SchemeIs("chrome") || - url.SchemeIs("view-source")) + if (url.SchemeIs(chrome::kJavaScriptScheme) || + url.SchemeIs(chrome::kChromeUIScheme) || + url.SchemeIs(chrome::kViewSourceScheme)) return false; - if (url.SchemeIs("about")) { + if (url.SchemeIs(chrome::kAboutScheme)) { std::string path = url.path(); if (path.empty() || LowerCaseEqualsASCII(path, "blank")) return false; |