| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/recovery/recovery_install_global_error_factory.h" | 5 #include "chrome/browser/recovery/recovery_install_global_error_factory.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" |
| 7 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/recovery/recovery_install_global_error.h" | 10 #include "chrome/browser/recovery/recovery_install_global_error.h" |
| 10 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 11 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 12 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 12 | 13 |
| 13 RecoveryInstallGlobalErrorFactory::RecoveryInstallGlobalErrorFactory() | 14 RecoveryInstallGlobalErrorFactory::RecoveryInstallGlobalErrorFactory() |
| 14 : BrowserContextKeyedServiceFactory( | 15 : BrowserContextKeyedServiceFactory( |
| 15 "RecoveryInstallGlobalError", | 16 "RecoveryInstallGlobalError", |
| 16 BrowserContextDependencyManager::GetInstance()) { | 17 BrowserContextDependencyManager::GetInstance()) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 } | 34 } |
| 34 | 35 |
| 35 KeyedService* RecoveryInstallGlobalErrorFactory::BuildServiceInstanceFor( | 36 KeyedService* RecoveryInstallGlobalErrorFactory::BuildServiceInstanceFor( |
| 36 content::BrowserContext* context) const { | 37 content::BrowserContext* context) const { |
| 37 #if defined(OS_WIN) || defined(OS_MACOSX) | 38 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 38 return new RecoveryInstallGlobalError(static_cast<Profile*>(context)); | 39 return new RecoveryInstallGlobalError(static_cast<Profile*>(context)); |
| 39 #else | 40 #else |
| 40 return NULL; | 41 return NULL; |
| 41 #endif | 42 #endif |
| 42 } | 43 } |
| OLD | NEW |