OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/favicon/large_icon_service_factory.h" | 5 #include "chrome/browser/favicon/large_icon_service_factory.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" |
8 #include "chrome/browser/favicon/favicon_service_factory.h" | 9 #include "chrome/browser/favicon/favicon_service_factory.h" |
9 #include "chrome/browser/profiles/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "components/favicon/core/favicon_service.h" | 12 #include "components/favicon/core/favicon_service.h" |
12 #include "components/favicon/core/large_icon_service.h" | 13 #include "components/favicon/core/large_icon_service.h" |
13 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 14 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
14 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 | 17 |
17 // static | 18 // static |
(...skipping 29 matching lines...) Expand all Loading... |
47 ServiceAccessType::EXPLICIT_ACCESS); | 48 ServiceAccessType::EXPLICIT_ACCESS); |
48 return new favicon::LargeIconService( | 49 return new favicon::LargeIconService( |
49 favicon_service, content::BrowserThread::GetBlockingPool() | 50 favicon_service, content::BrowserThread::GetBlockingPool() |
50 ->GetTaskRunnerWithShutdownBehavior( | 51 ->GetTaskRunnerWithShutdownBehavior( |
51 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 52 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
52 } | 53 } |
53 | 54 |
54 bool LargeIconServiceFactory::ServiceIsNULLWhileTesting() const { | 55 bool LargeIconServiceFactory::ServiceIsNULLWhileTesting() const { |
55 return true; | 56 return true; |
56 } | 57 } |
OLD | NEW |