Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6219)

Unified Diff: chrome/browser/history/history_service.cc

Issue 168953002: Cleanup: Move kChromeDevToolsScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_service.cc
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc
index f48ca5a90480c9f2b645a576d3bcf82ec6a6e519..20b90f21b98846c12abfad3a590a2bfc91ee401a 100644
--- a/chrome/browser/history/history_service.cc
+++ b/chrome/browser/history/history_service.cc
@@ -1008,12 +1008,12 @@ bool HistoryService::CanAddURL(const GURL& url) {
// typed. Right now, however, these are marked as typed even when triggered
// by a shortcut or menu action.
if (url.SchemeIs(content::kJavaScriptScheme) ||
- url.SchemeIs(chrome::kChromeDevToolsScheme) ||
- url.SchemeIs(chrome::kChromeNativeScheme) ||
+ url.SchemeIs(content::kChromeDevToolsScheme) ||
url.SchemeIs(content::kChromeUIScheme) ||
+ url.SchemeIs(content::kViewSourceScheme) ||
+ url.SchemeIs(chrome::kChromeNativeScheme) ||
url.SchemeIs(chrome::kChromeSearchScheme) ||
- url.SchemeIs(chrome::kDomDistillerScheme) ||
- url.SchemeIs(content::kViewSourceScheme))
+ url.SchemeIs(chrome::kDomDistillerScheme))
return false;
// Allow all about: and chrome: URLs except about:blank, since the user may

Powered by Google App Engine
This is Rietveld 408576698