| OLD | NEW |
| 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/instant/instant_service_factory.h" | 5 #include "chrome/browser/instant/instant_service_factory.h" |
| 6 | 6 |
| 7 #include "chrome/browser/instant/instant_service.h" | 7 #include "chrome/browser/instant/instant_service.h" |
| 8 #include "chrome/browser/profiles/profile_dependency_manager.h" | 8 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 9 | 9 |
| 10 // static | 10 // static |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // No dependencies. | 24 // No dependencies. |
| 25 } | 25 } |
| 26 | 26 |
| 27 InstantServiceFactory::~InstantServiceFactory() { | 27 InstantServiceFactory::~InstantServiceFactory() { |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool InstantServiceFactory::ServiceRedirectedInIncognito() const { | 30 bool InstantServiceFactory::ServiceRedirectedInIncognito() const { |
| 31 return true; | 31 return true; |
| 32 } | 32 } |
| 33 | 33 |
| 34 bool InstantServiceFactory::ServiceIsNULLWhileTesting() const { |
| 35 return false; |
| 36 } |
| 37 |
| 34 ProfileKeyedService* InstantServiceFactory::BuildServiceInstanceFor( | 38 ProfileKeyedService* InstantServiceFactory::BuildServiceInstanceFor( |
| 35 Profile* profile) const { | 39 Profile* profile) const { |
| 36 return new InstantService; | 40 return new InstantService(profile); |
| 37 } | 41 } |
| OLD | NEW |