Skip to content
Snippets Groups Projects
Commit 0ce24e7b authored by pkasting@chromium.org's avatar pkasting@chromium.org
Browse files

Add about: and chrome:* to history. Patch by Pierre-Antoine LaFayette (see...

Add about: and chrome:* to history.  Patch by Pierre-Antoine LaFayette (see http://codereview.chromium.org/193071 ), r=me,brettw.

BUG=2958
TEST=Visit "about:", then hit ctrl-h and make sure it's in your history.

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27131 0039d316-1c4b-4281-b951-d872f2087c98
parent 6d2adbe3
No related merge requests found
......@@ -620,16 +620,16 @@ bool HistoryService::CanAddURL(const GURL& url) const {
if (!url.is_valid())
return false;
// We allow chrome://* URLs so that they will be added to history and
// autocomplete suggestions.
if (url.SchemeIs(chrome::kJavaScriptScheme) ||
url.SchemeIs(chrome::kChromeUIScheme) ||
url.SchemeIs(chrome::kViewSourceScheme) ||
url.SchemeIs(chrome::kChromeInternalScheme) ||
url.SchemeIs(chrome::kPrintScheme))
return false;
if (url.SchemeIs(chrome::kAboutScheme)) {
std::string path = url.path();
if (path.empty() || LowerCaseEqualsASCII(path, "blank"))
if (LowerCaseEqualsASCII(url.path(), "blank"))
return false;
// We allow all other about URLs since the user may like to see things
// like "about:memory" or "about:histograms" in their history and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment