OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/image_loader_factory.h" | 5 #include "extensions/browser/image_loader_factory.h" |
6 | 6 |
7 #include "chrome/browser/extensions/image_loader.h" | |
8 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 7 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
9 #include "extensions/browser/extensions_browser_client.h" | 8 #include "extensions/browser/extensions_browser_client.h" |
| 9 #include "extensions/browser/image_loader.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 // static | 13 // static |
14 ImageLoader* ImageLoaderFactory::GetForBrowserContext( | 14 ImageLoader* ImageLoaderFactory::GetForBrowserContext( |
15 content::BrowserContext* context) { | 15 content::BrowserContext* context) { |
16 return static_cast<ImageLoader*>( | 16 return static_cast<ImageLoader*>( |
17 GetInstance()->GetServiceForBrowserContext(context, true)); | 17 GetInstance()->GetServiceForBrowserContext(context, true)); |
18 } | 18 } |
19 | 19 |
(...skipping 18 matching lines...) Expand all Loading... |
38 bool ImageLoaderFactory::ServiceIsCreatedWithBrowserContext() const { | 38 bool ImageLoaderFactory::ServiceIsCreatedWithBrowserContext() const { |
39 return false; | 39 return false; |
40 } | 40 } |
41 | 41 |
42 content::BrowserContext* ImageLoaderFactory::GetBrowserContextToUse( | 42 content::BrowserContext* ImageLoaderFactory::GetBrowserContextToUse( |
43 content::BrowserContext* context) const { | 43 content::BrowserContext* context) const { |
44 return ExtensionsBrowserClient::Get()->GetOriginalContext(context); | 44 return ExtensionsBrowserClient::Get()->GetOriginalContext(context); |
45 } | 45 } |
46 | 46 |
47 } // namespace extensions | 47 } // namespace extensions |
OLD | NEW |