| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/signin/signin_error_controller_factory.h" | 5 #include "ios/chrome/browser/signin/signin_error_controller_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "components/keyed_service/core/service_access_type.h" | 8 #include "components/keyed_service/core/service_access_type.h" |
| 9 #include "components/keyed_service/ios/browser_state_dependency_manager.h" | 9 #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
| 10 #include "components/signin/core/browser/signin_error_controller.h" | 10 #include "components/signin/core/browser/signin_error_controller.h" |
| 11 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | 11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 12 | 12 |
| 13 namespace ios { | 13 namespace ios { |
| 14 | 14 |
| 15 // static | 15 // static |
| 16 SigninErrorController* SigninErrorControllerFactory::GetForBrowserState( | 16 SigninErrorController* SigninErrorControllerFactory::GetForBrowserState( |
| 17 ios::ChromeBrowserState* browser_state) { | 17 ios::ChromeBrowserState* browser_state) { |
| 18 return static_cast<SigninErrorController*>( | 18 return static_cast<SigninErrorController*>( |
| 19 GetInstance()->GetServiceForBrowserState(browser_state, true)); | 19 GetInstance()->GetServiceForBrowserState(browser_state, true)); |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 SigninErrorControllerFactory::~SigninErrorControllerFactory() { | 33 SigninErrorControllerFactory::~SigninErrorControllerFactory() { |
| 34 } | 34 } |
| 35 | 35 |
| 36 scoped_ptr<KeyedService> SigninErrorControllerFactory::BuildServiceInstanceFor( | 36 scoped_ptr<KeyedService> SigninErrorControllerFactory::BuildServiceInstanceFor( |
| 37 web::BrowserState* context) const { | 37 web::BrowserState* context) const { |
| 38 return make_scoped_ptr(new SigninErrorController); | 38 return make_scoped_ptr(new SigninErrorController); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace ios | 41 } // namespace ios |
| OLD | NEW |