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

Side by Side Diff: chrome/browser/ui/app_list/search/omnibox_result.cc

Issue 1191373002: Componentize AutocompleteController and its supporting cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prep_builtin_provider_for_c14n
Patch Set: Rebase Created 5 years, 5 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 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 "chrome/browser/ui/app_list/search/omnibox_result.h" 5 #include "chrome/browser/ui/app_list/search/omnibox_result.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/autocomplete/autocomplete_controller.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
12 #include "chrome/browser/ui/app_list/search/search_util.h" 11 #include "chrome/browser/ui/app_list/search/search_util.h"
13 #include "components/bookmarks/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/omnibox/autocomplete_controller.h"
14 #include "components/omnibox/autocomplete_match_type.h" 14 #include "components/omnibox/autocomplete_match_type.h"
15 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 #include "url/url_canon.h" 18 #include "url/url_canon.h"
19 19
20 using bookmarks::BookmarkModel; 20 using bookmarks::BookmarkModel;
21 21
22 namespace app_list { 22 namespace app_list {
23 23
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 set_title_tags(title_tags); 158 set_title_tags(title_tags);
159 159
160 set_details(match_.description); 160 set_details(match_.description);
161 SearchResult::Tags details_tags; 161 SearchResult::Tags details_tags;
162 ACMatchClassificationsToTags(match_.description, match_.description_class, 162 ACMatchClassificationsToTags(match_.description, match_.description_class,
163 &details_tags); 163 &details_tags);
164 set_details_tags(details_tags); 164 set_details_tags(details_tags);
165 } 165 }
166 166
167 } // namespace app_list 167 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/omnibox_provider.cc ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698