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

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

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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/suggestions/suggestions_search_provi der.h" 5 #include "chrome/browser/ui/app_list/search/suggestions/suggestions_search_provi der.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "chrome/browser/favicon/favicon_service_factory.h" 11 #include "chrome/browser/favicon/favicon_service_factory.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 13 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
14 #include "chrome/browser/sync/profile_sync_service_factory.h" 14 #include "chrome/browser/sync/profile_sync_service_factory.h"
15 #include "chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.h" 15 #include "chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.h"
16 #include "components/browser_sync/browser/profile_sync_service.h" 16 #include "components/browser_sync/profile_sync_service.h"
17 #include "components/favicon/core/favicon_service.h" 17 #include "components/favicon/core/favicon_service.h"
18 #include "components/suggestions/proto/suggestions.pb.h" 18 #include "components/suggestions/proto/suggestions.pb.h"
19 #include "components/suggestions/suggestions_service.h" 19 #include "components/suggestions/suggestions_service.h"
20 20
21 namespace app_list { 21 namespace app_list {
22 22
23 SuggestionsSearchProvider::SuggestionsSearchProvider( 23 SuggestionsSearchProvider::SuggestionsSearchProvider(
24 Profile* profile, 24 Profile* profile,
25 AppListControllerDelegate* list_controller) 25 AppListControllerDelegate* list_controller)
26 : profile_(profile), 26 : profile_(profile),
(...skipping 29 matching lines...) Expand all
56 suggestions_service_, suggestion)); 56 suggestions_service_, suggestion));
57 result->set_relevance(1.0 / (i + 1)); 57 result->set_relevance(1.0 / (i + 1));
58 Add(std::move(result)); 58 Add(std::move(result));
59 } 59 }
60 } 60 }
61 61
62 void SuggestionsSearchProvider::Stop() { 62 void SuggestionsSearchProvider::Stop() {
63 } 63 }
64 64
65 } // namespace app_list 65 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model.cc ('k') | chrome/browser/ui/ash/app_sync_ui_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698