| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |