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/visitedlink/visitedlink_master_factory.h" | 5 #include "chrome/browser/visitedlink/visitedlink_master_factory.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "chrome/browser/profiles/profile_dependency_manager.h" | 8 #include "chrome/browser/profiles/profile_dependency_manager.h" |
9 #include "chrome/browser/visitedlink/visitedlink_master.h" | 9 #include "chrome/browser/visitedlink/visitedlink_master.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 ProfileKeyedService* | 35 ProfileKeyedService* |
36 VisitedLinkMasterFactory::BuildServiceInstanceFor(Profile* profile) const { | 36 VisitedLinkMasterFactory::BuildServiceInstanceFor(Profile* profile) const { |
37 VisitedLinkMaster* visitedlink_master(new VisitedLinkMaster(profile)); | 37 VisitedLinkMaster* visitedlink_master(new VisitedLinkMaster(profile)); |
38 if (visitedlink_master->Init()) | 38 if (visitedlink_master->Init()) |
39 return visitedlink_master; | 39 return visitedlink_master; |
40 return NULL; | 40 return NULL; |
41 } | 41 } |
42 | 42 |
| 43 bool VisitedLinkMasterFactory::ServiceIsCreatedWithProfile() const { |
| 44 return true; |
| 45 } |
| 46 |
43 bool VisitedLinkMasterFactory::ServiceIsNULLWhileTesting() const { | 47 bool VisitedLinkMasterFactory::ServiceIsNULLWhileTesting() const { |
44 return true; | 48 return true; |
45 } | 49 } |
OLD | NEW |