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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/favicon/favicon_service_factory.h" 9 #include "chrome/browser/favicon/favicon_service_factory.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 11 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
12 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/profile_sync_service_factory.h" 12 #include "chrome/browser/sync/profile_sync_service_factory.h"
14 #include "chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.h" 13 #include "chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.h"
14 #include "components/browser_sync/browser/profile_sync_service.h"
15 #include "components/favicon/core/favicon_service.h" 15 #include "components/favicon/core/favicon_service.h"
16 #include "components/suggestions/proto/suggestions.pb.h" 16 #include "components/suggestions/proto/suggestions.pb.h"
17 #include "components/suggestions/suggestions_service.h" 17 #include "components/suggestions/suggestions_service.h"
18 #include "components/suggestions/suggestions_utils.h" 18 #include "components/suggestions/suggestions_utils.h"
19 19
20 using suggestions::SyncState; 20 using suggestions::SyncState;
21 21
22 namespace app_list { 22 namespace app_list {
23 23
24 namespace { 24 namespace {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // TODO(mathp): If it's an app, create an AppResult. 82 // TODO(mathp): If it's an app, create an AppResult.
83 scoped_ptr<URLSuggestionResult> result(new URLSuggestionResult( 83 scoped_ptr<URLSuggestionResult> result(new URLSuggestionResult(
84 profile_, list_controller_, favicon_service_, suggestions_service_, 84 profile_, list_controller_, favicon_service_, suggestions_service_,
85 suggestion)); 85 suggestion));
86 result->set_relevance(1.0 / (i + 1)); 86 result->set_relevance(1.0 / (i + 1));
87 Add(result.Pass()); 87 Add(result.Pass());
88 } 88 }
89 } 89 }
90 90
91 } // namespace app_list 91 } // 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