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/autocomplete_match.h" | 5 #include "components/omnibox/browser/autocomplete_match.h" |
6 | 6 |
7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
12 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "build/build_config.h" |
16 #include "components/omnibox/browser/autocomplete_provider.h" | 18 #include "components/omnibox/browser/autocomplete_provider.h" |
17 #include "components/omnibox/browser/suggestion_answer.h" | 19 #include "components/omnibox/browser/suggestion_answer.h" |
18 #include "components/search_engines/template_url.h" | 20 #include "components/search_engines/template_url.h" |
19 #include "components/search_engines/template_url_service.h" | 21 #include "components/search_engines/template_url_service.h" |
20 #include "components/url_formatter/url_formatter.h" | 22 #include "components/url_formatter/url_formatter.h" |
21 #include "grit/components_scaled_resources.h" | 23 #include "grit/components_scaled_resources.h" |
22 #include "ui/gfx/vector_icons_public.h" | 24 #include "ui/gfx/vector_icons_public.h" |
23 | 25 |
24 namespace { | 26 namespace { |
25 | 27 |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 << " is unsorted in relation to last offset of " << last_offset | 664 << " is unsorted in relation to last offset of " << last_offset |
663 << ". Provider: " << provider_name << "."; | 665 << ". Provider: " << provider_name << "."; |
664 DCHECK_LT(i->offset, text.length()) | 666 DCHECK_LT(i->offset, text.length()) |
665 << " Classification of [" << i->offset << "," << text.length() | 667 << " Classification of [" << i->offset << "," << text.length() |
666 << "] is out of bounds for \"" << text << "\". Provider: " | 668 << "] is out of bounds for \"" << text << "\". Provider: " |
667 << provider_name << "."; | 669 << provider_name << "."; |
668 last_offset = i->offset; | 670 last_offset = i->offset; |
669 } | 671 } |
670 } | 672 } |
671 #endif | 673 #endif |
OLD | NEW |