OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/background/background_contents_service_factory.h" | 5 #include "chrome/browser/background/background_contents_service_factory.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/background/background_contents_service.h" | 8 #include "chrome/browser/background/background_contents_service.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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 ProfileKeyedService* BackgroundContentsServiceFactory::BuildServiceInstanceFor( | 32 ProfileKeyedService* BackgroundContentsServiceFactory::BuildServiceInstanceFor( |
33 Profile* profile) const { | 33 Profile* profile) const { |
34 return new BackgroundContentsService(profile, | 34 return new BackgroundContentsService(profile, |
35 CommandLine::ForCurrentProcess()); | 35 CommandLine::ForCurrentProcess()); |
36 } | 36 } |
37 | 37 |
38 bool BackgroundContentsServiceFactory::ServiceHasOwnInstanceInIncognito() { | 38 bool BackgroundContentsServiceFactory::ServiceHasOwnInstanceInIncognito() { |
39 return true; | 39 return true; |
40 } | 40 } |
| 41 |
| 42 bool BackgroundContentsServiceFactory::ServiceIsCreatedWithProfile() { |
| 43 return true; |
| 44 } |
| 45 |
| 46 bool BackgroundContentsServiceFactory::ServiceIsNULLWhileTesting() { |
| 47 return true; |
| 48 } |
OLD | NEW |