summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/builtin_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/builtin_provider.cc')
-rw-r--r--chrome/browser/autocomplete/builtin_provider.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/builtin_provider.cc b/chrome/browser/autocomplete/builtin_provider.cc
index fd0c677..54a1b60 100644
--- a/chrome/browser/autocomplete/builtin_provider.cc
+++ b/chrome/browser/autocomplete/builtin_provider.cc
@@ -63,13 +63,13 @@ void BuiltinProvider::Start(const AutocompleteInput& input,
(input.matches_requested() == AutocompleteInput::BEST_MATCH))
return;
- const string16 kAbout = ASCIIToUTF16(chrome::kAboutScheme) +
+ static const string16 kAbout = ASCIIToUTF16(chrome::kAboutScheme) +
ASCIIToUTF16(chrome::kStandardSchemeSeparator);
- const string16 kChrome = ASCIIToUTF16(chrome::kChromeUIScheme) +
+ static const string16 kChrome = ASCIIToUTF16(chrome::kChromeUIScheme) +
ASCIIToUTF16(chrome::kStandardSchemeSeparator);
- const int kUrl = ACMatchClassification::URL;
- const int kMatch = kUrl | ACMatchClassification::MATCH;
+ static const int kUrl = ACMatchClassification::URL;
+ static const int kMatch = kUrl | ACMatchClassification::MATCH;
string16 text = input.text();
bool starting_chrome = StartsWith(kChrome, text, false);
@@ -77,7 +77,7 @@ void BuiltinProvider::Start(const AutocompleteInput& input,
ACMatchClassifications styles;
// Highlight the input portion matching "chrome://"; or if the user has
// input "about:" (with optional slashes), highlight the whole "chrome://".
- const size_t kAboutSchemeLength = strlen(chrome::kAboutScheme);
+ static const size_t kAboutSchemeLength = strlen(chrome::kAboutScheme);
bool highlight = starting_chrome || text.length() > kAboutSchemeLength;
styles.push_back(ACMatchClassification(0, highlight ? kMatch : kUrl));
size_t offset = starting_chrome ? text.length() : kChrome.length();