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

Unified Diff: chrome/browser/autocomplete/builtin_provider.cc

Issue 328713006: Merge 275988 "Move about://-related constants from //content to ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2042/src/
Patch Set: Created 6 years, 6 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/autocomplete/builtin_provider.cc
===================================================================
--- chrome/browser/autocomplete/builtin_provider.cc (revision 276109)
+++ chrome/browser/autocomplete/builtin_provider.cc (working copy)
@@ -70,8 +70,9 @@
(input.type() == metrics::OmniboxInputType::QUERY))
return;
- const size_t kAboutSchemeLength = strlen(content::kAboutScheme);
- const base::string16 kAbout = base::ASCIIToUTF16(content::kAboutScheme) +
+ const size_t kAboutSchemeLength = strlen(url::kAboutScheme);
+ const base::string16 kAbout =
+ base::ASCIIToUTF16(url::kAboutScheme) +
base::ASCIIToUTF16(url::kStandardSchemeSeparator);
const base::string16 kChrome = base::ASCIIToUTF16(content::kChromeUIScheme) +
base::ASCIIToUTF16(url::kStandardSchemeSeparator);
@@ -110,12 +111,12 @@
// Chrome does not support trailing slashes or paths for about:blank.
const base::string16 blank_host = base::ASCIIToUTF16("blank");
const base::string16 host = base::UTF8ToUTF16(url.host());
- if (StartsWith(text, base::ASCIIToUTF16(content::kAboutScheme), false) &&
+ if (StartsWith(text, base::ASCIIToUTF16(url::kAboutScheme), false) &&
StartsWith(blank_host, host, false) && (url.path().length() <= 1) &&
!EndsWith(text, base::ASCIIToUTF16("/"), false)) {
ACMatchClassifications styles;
styles.push_back(ACMatchClassification(0, kMatch));
- base::string16 match = base::ASCIIToUTF16(content::kAboutBlankURL);
+ base::string16 match = base::ASCIIToUTF16(url::kAboutBlankURL);
// Measure the length of the matching host after the "about:" scheme.
const size_t corrected_length = kAboutSchemeLength + 1 + host.length();
if (blank_host.length() > host.length())
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/autocomplete/builtin_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698