OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/histogram.h" | |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
13 #include "chrome/app/chrome_dll_resource.h" | 12 #include "chrome/app/chrome_dll_resource.h" |
14 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 13 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
15 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" | 14 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" |
16 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 15 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
17 #include "chrome/browser/autocomplete/keyword_provider.h" | 16 #include "chrome/browser/autocomplete/keyword_provider.h" |
18 #include "chrome/browser/command_updater.h" | 17 #include "chrome/browser/command_updater.h" |
19 #include "chrome/browser/extensions/extension_omnibox_api.h" | 18 #include "chrome/browser/extensions/extension_omnibox_api.h" |
20 #include "chrome/browser/metrics/user_metrics.h" | 19 #include "chrome/browser/metrics/user_metrics.h" |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 AutocompleteMatch* match, | 676 AutocompleteMatch* match, |
678 GURL* alternate_nav_url) const { | 677 GURL* alternate_nav_url) const { |
679 if (popup_->IsOpen() || query_in_progress()) { | 678 if (popup_->IsOpen() || query_in_progress()) { |
680 popup_->InfoForCurrentSelection(match, alternate_nav_url); | 679 popup_->InfoForCurrentSelection(match, alternate_nav_url); |
681 } else { | 680 } else { |
682 profile_->GetAutocompleteClassifier()->Classify( | 681 profile_->GetAutocompleteClassifier()->Classify( |
683 UserTextFromDisplayText(view_->GetText()), GetDesiredTLD(), match, | 682 UserTextFromDisplayText(view_->GetText()), GetDesiredTLD(), match, |
684 alternate_nav_url); | 683 alternate_nav_url); |
685 } | 684 } |
686 } | 685 } |
OLD | NEW |