| 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/android/logo_service.h" | 5 #include "chrome/browser/android/logo_service.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "chrome/browser/android/chrome_feature_list.h" | 11 #include "chrome/browser/android/chrome_feature_list.h" |
| 12 #include "chrome/browser/image_decoder.h" | |
| 13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/search_engines/template_url_service_factory.h" | 13 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 15 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" | 14 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" |
| 15 #include "components/image_fetcher/content/image_decoder.h" |
| 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 17 #include "components/search_engines/template_url_service.h" | 17 #include "components/search_engines/template_url_service.h" |
| 18 #include "components/search_provider_logos/google_logo_api.h" | 18 #include "components/search_provider_logos/google_logo_api.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 using search_provider_logos::Logo; | 23 using search_provider_logos::Logo; |
| 24 using search_provider_logos::LogoDelegate; | 24 using search_provider_logos::LogoDelegate; |
| 25 using search_provider_logos::LogoTracker; | 25 using search_provider_logos::LogoTracker; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 LogoServiceFactory::~LogoServiceFactory() {} | 156 LogoServiceFactory::~LogoServiceFactory() {} |
| 157 | 157 |
| 158 KeyedService* LogoServiceFactory::BuildServiceInstanceFor( | 158 KeyedService* LogoServiceFactory::BuildServiceInstanceFor( |
| 159 content::BrowserContext* context) const { | 159 content::BrowserContext* context) const { |
| 160 Profile* profile = static_cast<Profile*>(context); | 160 Profile* profile = static_cast<Profile*>(context); |
| 161 DCHECK(!profile->IsOffTheRecord()); | 161 DCHECK(!profile->IsOffTheRecord()); |
| 162 return new LogoService(profile); | 162 return new LogoService(profile); |
| 163 } | 163 } |
| OLD | NEW |