Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Side by Side Diff: components/omnibox/browser/physical_web_provider.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/physical_web_provider.h" 5 #include "components/omnibox/browser/physical_web_provider.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "components/bookmarks/browser/titled_url_index.h" 11 #include "components/bookmarks/browser/titled_url_index.h"
12 #include "components/bookmarks/browser/titled_url_node_sorter.h" 12 #include "components/bookmarks/browser/titled_url_node_sorter.h"
13 #include "components/omnibox/browser/autocomplete_provider_client.h" 13 #include "components/omnibox/browser/autocomplete_provider_client.h"
14 #include "components/omnibox/browser/autocomplete_provider_listener.h" 14 #include "components/omnibox/browser/autocomplete_provider_listener.h"
15 #include "components/omnibox/browser/history_url_provider.h" 15 #include "components/omnibox/browser/history_url_provider.h"
16 #include "components/omnibox/browser/omnibox_field_trial.h" 16 #include "components/omnibox/browser/omnibox_field_trial.h"
17 #include "components/omnibox/browser/physical_web_node.h" 17 #include "components/omnibox/browser/physical_web_node.h"
18 #include "components/omnibox/browser/titled_url_match_utils.h" 18 #include "components/omnibox/browser/titled_url_match_utils.h"
19 #include "components/omnibox/browser/url_prefix.h" 19 #include "components/omnibox/browser/url_prefix.h"
20 #include "components/omnibox/browser/verbatim_match.h" 20 #include "components/omnibox/browser/verbatim_match.h"
21 #include "components/physical_web/data_source/physical_web_data_source.h" 21 #include "components/physical_web/data_source/physical_web_data_source.h"
22 #include "components/strings/grit/components_strings.h"
22 #include "components/url_formatter/url_formatter.h" 23 #include "components/url_formatter/url_formatter.h"
23 #include "grit/components_strings.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 #include "ui/gfx/text_elider.h" 25 #include "ui/gfx/text_elider.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
28 namespace { 28 namespace {
29 29
30 // The maximum length of the page title's part of the overflow item's 30 // The maximum length of the page title's part of the overflow item's
31 // description. Longer titles will be truncated to this length. In a normal 31 // description. Longer titles will be truncated to this length. In a normal
32 // Physical Web match item (non-overflow item) we allow the omnibox display to 32 // Physical Web match item (non-overflow item) we allow the omnibox display to
33 // truncate the title instead. 33 // truncate the title instead.
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 AutocompleteInput::FormattedStringWithEquivalentMeaning( 283 AutocompleteInput::FormattedStringWithEquivalentMeaning(
284 url, match.contents, client_->GetSchemeClassifier()); 284 url, match.contents, client_->GetSchemeClassifier());
285 285
286 match.description = 286 match.description =
287 l10n_util::GetStringUTF16(IDS_PHYSICAL_WEB_OVERFLOW_DESCRIPTION); 287 l10n_util::GetStringUTF16(IDS_PHYSICAL_WEB_OVERFLOW_DESCRIPTION);
288 match.description_class.push_back( 288 match.description_class.push_back(
289 ACMatchClassification(0, ACMatchClassification::NONE)); 289 ACMatchClassification(0, ACMatchClassification::NONE));
290 290
291 matches_.push_back(match); 291 matches_.push_back(match);
292 } 292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698