summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/autocomplete.cc9
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_model.cc3
-rw-r--r--chrome/browser/autocomplete/history_url_provider.cc5
-rw-r--r--chrome/browser/autocomplete/keyword_provider_unittest.cc3
4 files changed, 12 insertions, 8 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.cc b/chrome/browser/autocomplete/autocomplete.cc
index 18abde0..d9c3143 100644
--- a/chrome/browser/autocomplete/autocomplete.cc
+++ b/chrome/browser/autocomplete/autocomplete.cc
@@ -80,10 +80,11 @@ std::string AutocompleteInput::TypeToString(Type type) {
}
//static
-AutocompleteInput::Type AutocompleteInput::Parse(const std::wstring& text,
- const std::wstring& desired_tld,
- url_parse::Parsed* parts,
- std::wstring* scheme) {
+AutocompleteInput::Type AutocompleteInput::Parse(
+ const std::wstring& text,
+ const std::wstring& desired_tld,
+ url_parse::Parsed* parts,
+ std::wstring* scheme) {
DCHECK(parts);
const size_t first_non_white = text.find_first_not_of(kWhitespaceWide, 0);
diff --git a/chrome/browser/autocomplete/autocomplete_popup_model.cc b/chrome/browser/autocomplete/autocomplete_popup_model.cc
index ca77882..8cc5ced 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_model.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_model.cc
@@ -313,7 +313,8 @@ void AutocompletePopupModel::Observe(NotificationType type,
}
// FALL THROUGH
- case NotificationType::AUTOCOMPLETE_CONTROLLER_SYNCHRONOUS_MATCHES_AVAILABLE: {
+ case NotificationType::
+ AUTOCOMPLETE_CONTROLLER_SYNCHRONOUS_MATCHES_AVAILABLE: {
// Update the edit with the possibly new data for this match.
// NOTE: This must be done after the code above, so that our internal
// state will be consistent when the edit calls back to
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 7ecba26..25f53a6 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -584,8 +584,9 @@ void HistoryURLProvider::EnsureMatchPresent(
matches->push_back(match);
}
-void HistoryURLProvider::RunAutocompletePasses(const AutocompleteInput& input,
- bool fixup_input_and_run_pass_1) {
+void HistoryURLProvider::RunAutocompletePasses(
+ const AutocompleteInput& input,
+ bool fixup_input_and_run_pass_1) {
matches_.clear();
if ((input.type() != AutocompleteInput::UNKNOWN) &&
diff --git a/chrome/browser/autocomplete/keyword_provider_unittest.cc b/chrome/browser/autocomplete/keyword_provider_unittest.cc
index 941c96b..c7dadd5 100644
--- a/chrome/browser/autocomplete/keyword_provider_unittest.cc
+++ b/chrome/browser/autocomplete/keyword_provider_unittest.cc
@@ -45,7 +45,8 @@ void KeywordProviderTest::SetUp() {
{ L"z", L"%s=z", L"z" },
};
- model_.reset(new TemplateURLModel(kTestKeywordData, arraysize(kTestKeywordData)));
+ model_.reset(new TemplateURLModel(kTestKeywordData,
+ arraysize(kTestKeywordData)));
kw_provider_ = new KeywordProvider(NULL, model_.get());
}