| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/history_url_provider.h" | 5 #include "components/omnibox/browser/history_url_provider.h" | 
| 6 | 6 | 
| 7 #include <algorithm> | 7 #include <algorithm> | 
| 8 | 8 | 
| 9 #include "base/bind.h" | 9 #include "base/bind.h" | 
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" | 
| 11 #include "base/location.h" | 11 #include "base/location.h" | 
| 12 #include "base/macros.h" | 12 #include "base/macros.h" | 
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" | 
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram_macros.h" | 
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" | 
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" | 
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" | 
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" | 
| 19 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" | 
| 20 #include "components/bookmarks/browser/bookmark_utils.h" | 20 #include "components/bookmarks/browser/bookmark_utils.h" | 
| 21 #include "components/history/core/browser/history_backend.h" | 21 #include "components/history/core/browser/history_backend.h" | 
| 22 #include "components/history/core/browser/history_database.h" | 22 #include "components/history/core/browser/history_database.h" | 
| 23 #include "components/history/core/browser/history_service.h" | 23 #include "components/history/core/browser/history_service.h" | 
| 24 #include "components/history/core/browser/history_types.h" | 24 #include "components/history/core/browser/history_types.h" | 
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1192     AutocompleteMatch::ClassifyLocationInString(base::string16::npos, 0, | 1192     AutocompleteMatch::ClassifyLocationInString(base::string16::npos, 0, | 
| 1193         match.contents.length(), ACMatchClassification::URL, | 1193         match.contents.length(), ACMatchClassification::URL, | 
| 1194         &match.contents_class); | 1194         &match.contents_class); | 
| 1195   } | 1195   } | 
| 1196   match.description = info.title(); | 1196   match.description = info.title(); | 
| 1197   match.description_class = | 1197   match.description_class = | 
| 1198       ClassifyDescription(params.input.text(), match.description); | 1198       ClassifyDescription(params.input.text(), match.description); | 
| 1199   RecordAdditionalInfoFromUrlRow(info, &match); | 1199   RecordAdditionalInfoFromUrlRow(info, &match); | 
| 1200   return match; | 1200   return match; | 
| 1201 } | 1201 } | 
| OLD | NEW | 
|---|