| 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/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 Loading... |
| 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 } |
| OLD | NEW |