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

Side by Side Diff: extensions/browser/image_loader_factory.cc

Issue 334053003: Moves extension_icon_image and image_loader to extensions/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include fail Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « extensions/browser/image_loader_factory.h ('k') | extensions/browser/image_loader_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/browser/image_loader_factory.h ('k') | extensions/browser/image_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698