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

Side by Side Diff: chrome/browser/webdata/web_data_service_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 (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/webdata/web_data_service_factory.h" 5 #include "chrome/browser/webdata/web_data_service_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/profile_dependency_manager.h" 10 #include "chrome/browser/profiles/profile_dependency_manager.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // static 180 // static
181 WebDataServiceFactory* WebDataServiceFactory::GetInstance() { 181 WebDataServiceFactory* WebDataServiceFactory::GetInstance() {
182 return Singleton<WebDataServiceFactory>::get(); 182 return Singleton<WebDataServiceFactory>::get();
183 } 183 }
184 184
185 bool WebDataServiceFactory::ServiceRedirectedInIncognito() const { 185 bool WebDataServiceFactory::ServiceRedirectedInIncognito() const {
186 return true; 186 return true;
187 } 187 }
188 188
189 ProfileKeyedService* 189 ProfileKeyedService* WebDataServiceFactory::BuildServiceInstanceFor(
190 WebDataServiceFactory::BuildServiceInstanceFor(Profile* profile) const { 190 content::BrowserContext* profile) const {
191 return new WebDataServiceWrapper(profile); 191 return new WebDataServiceWrapper(static_cast<Profile*>(profile));
192 } 192 }
193 193
194 bool WebDataServiceFactory::ServiceIsNULLWhileTesting() const { 194 bool WebDataServiceFactory::ServiceIsNULLWhileTesting() const {
195 return true; 195 return true;
196 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698