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

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

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 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
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 "chrome/browser/extensions/image_loader_factory.h"
6 6
7 #include "chrome/browser/extensions/image_loader.h" 7 #include "chrome/browser/extensions/image_loader.h"
8 #include "chrome/browser/profiles/incognito_helpers.h"
8 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/profiles/profile_dependency_manager.h" 10 #include "chrome/browser/profiles/profile_dependency_manager.h"
10 11
11 namespace extensions { 12 namespace extensions {
12 13
13 // static 14 // static
14 ImageLoader* ImageLoaderFactory::GetForProfile(Profile* profile) { 15 ImageLoader* ImageLoaderFactory::GetForProfile(Profile* profile) {
15 return static_cast<ImageLoader*>( 16 return static_cast<ImageLoader*>(
16 GetInstance()->GetServiceForProfile(profile, true)); 17 GetInstance()->GetServiceForProfile(profile, true));
17 } 18 }
(...skipping 19 matching lines...) Expand all
37 38
38 ProfileKeyedService* ImageLoaderFactory::BuildServiceInstanceFor( 39 ProfileKeyedService* ImageLoaderFactory::BuildServiceInstanceFor(
39 content::BrowserContext* profile) const { 40 content::BrowserContext* profile) const {
40 return new ImageLoader; 41 return new ImageLoader;
41 } 42 }
42 43
43 bool ImageLoaderFactory::ServiceIsCreatedWithProfile() const { 44 bool ImageLoaderFactory::ServiceIsCreatedWithProfile() const {
44 return false; 45 return false;
45 } 46 }
46 47
47 bool ImageLoaderFactory::ServiceRedirectedInIncognito() const { 48 content::BrowserContext* ImageLoaderFactory::GetBrowserContextToUse(
48 return true; 49 content::BrowserContext* context) const {
50 return chrome::GetBrowserContextRedirectedInIncognito(context);
49 } 51 }
50 52
51 } // namespace extensions 53 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/image_loader_factory.h ('k') | chrome/browser/extensions/install_tracker_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698