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

Side by Side Diff: chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review Created 7 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/autofill/autocheckout_whitelist_manager_factory.h" 5 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/profiles/profile_dependency_manager.h" 10 #include "chrome/browser/profiles/profile_dependency_manager.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 WhitelistManagerFactory::WhitelistManagerFactory() 64 WhitelistManagerFactory::WhitelistManagerFactory()
65 : ProfileKeyedServiceFactory("AutocheckoutWhitelistManager", 65 : ProfileKeyedServiceFactory("AutocheckoutWhitelistManager",
66 ProfileDependencyManager::GetInstance()) { 66 ProfileDependencyManager::GetInstance()) {
67 } 67 }
68 68
69 WhitelistManagerFactory::~WhitelistManagerFactory() { 69 WhitelistManagerFactory::~WhitelistManagerFactory() {
70 } 70 }
71 71
72 ProfileKeyedService* 72 ProfileKeyedService*
73 WhitelistManagerFactory::BuildServiceInstanceFor( 73 WhitelistManagerFactory::BuildServiceInstanceFor(
74 Profile* profile) const { 74 content::BrowserContext* profile) const {
75 WhitelistManagerService* service = 75 WhitelistManagerService* service =
76 new WhitelistManagerServiceImpl(profile); 76 new WhitelistManagerServiceImpl(static_cast<Profile*>(profile));
77 return service; 77 return service;
78 } 78 }
79 79
80 bool WhitelistManagerFactory::ServiceRedirectedInIncognito() const { 80 bool WhitelistManagerFactory::ServiceRedirectedInIncognito() const {
81 return true; 81 return true;
82 } 82 }
83 83
84 bool WhitelistManagerFactory::ServiceIsNULLWhileTesting() const { 84 bool WhitelistManagerFactory::ServiceIsNULLWhileTesting() const {
85 return true; 85 return true;
86 } 86 }
87 87
88 } // namespace autocheckout 88 } // namespace autocheckout
89 } // namespace autofill 89 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698