| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/keyword_provider.h" | 5 #include "chrome/browser/autocomplete/keyword_provider.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 11 #include "chrome/browser/template_url.h" | 11 #include "chrome/browser/search_engines/template_url.h" |
| 12 #include "chrome/browser/template_url_model.h" | 12 #include "chrome/browser/search_engines/template_url_model.h" |
| 13 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
| 14 #include "net/base/escape.h" | 14 #include "net/base/escape.h" |
| 15 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
| 16 | 16 |
| 17 #include "generated_resources.h" | 17 #include "generated_resources.h" |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 std::wstring KeywordProvider::SplitReplacementStringFromInput( | 20 std::wstring KeywordProvider::SplitReplacementStringFromInput( |
| 21 const std::wstring& input) { | 21 const std::wstring& input) { |
| 22 // The input may contain leading whitespace, strip it. | 22 // The input may contain leading whitespace, strip it. |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 result.description.length(), | 271 result.description.length(), |
| 272 ACMatchClassification::DIM, | 272 ACMatchClassification::DIM, |
| 273 &result.description_class); | 273 &result.description_class); |
| 274 | 274 |
| 275 // Keyword searches don't look like URLs. | 275 // Keyword searches don't look like URLs. |
| 276 result.transition = PageTransition::GENERATED; | 276 result.transition = PageTransition::GENERATED; |
| 277 | 277 |
| 278 return result; | 278 return result; |
| 279 } | 279 } |
| 280 | 280 |
| OLD | NEW |