| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/omnibox/browser/keyword_provider.h" | 5 #include "components/omnibox/browser/keyword_provider.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 13 #include "components/metrics/proto/omnibox_input_type.pb.h" | 14 #include "components/metrics/proto/omnibox_input_type.pb.h" |
| 14 #include "components/omnibox/browser/autocomplete_match.h" | 15 #include "components/omnibox/browser/autocomplete_match.h" |
| 15 #include "components/omnibox/browser/autocomplete_provider_client.h" | 16 #include "components/omnibox/browser/autocomplete_provider_client.h" |
| 16 #include "components/omnibox/browser/autocomplete_provider_listener.h" | 17 #include "components/omnibox/browser/autocomplete_provider_listener.h" |
| 17 #include "components/omnibox/browser/keyword_extensions_delegate.h" | 18 #include "components/omnibox/browser/keyword_extensions_delegate.h" |
| 18 #include "components/omnibox/browser/omnibox_field_trial.h" | 19 #include "components/omnibox/browser/omnibox_field_trial.h" |
| 19 #include "components/omnibox/browser/search_provider.h" | 20 #include "components/omnibox/browser/search_provider.h" |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 ACMatchClassification::NONE, &match->contents_class); | 497 ACMatchClassification::NONE, &match->contents_class); |
| 497 } | 498 } |
| 498 } | 499 } |
| 499 | 500 |
| 500 TemplateURLService* KeywordProvider::GetTemplateURLService() const { | 501 TemplateURLService* KeywordProvider::GetTemplateURLService() const { |
| 501 // Make sure the model is loaded. This is cheap and quickly bails out if | 502 // Make sure the model is loaded. This is cheap and quickly bails out if |
| 502 // the model is already loaded. | 503 // the model is already loaded. |
| 503 model_->Load(); | 504 model_->Load(); |
| 504 return model_; | 505 return model_; |
| 505 } | 506 } |
| OLD | NEW |