| 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/public/provider/chrome/browser/signin/chrome_identity_service.h" | 5 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" |
| 6 | 6 |
| 7 #include "ios/public/provider/chrome/browser/signin/chrome_identity_interaction_
manager.h" | 7 #include "ios/public/provider/chrome/browser/signin/chrome_identity_interaction_
manager.h" |
| 8 | 8 |
| 9 namespace ios { | 9 namespace ios { |
| 10 | 10 |
| 11 ChromeIdentityService::ChromeIdentityService() {} | 11 ChromeIdentityService::ChromeIdentityService() {} |
| 12 | 12 |
| 13 ChromeIdentityService::~ChromeIdentityService() { | 13 ChromeIdentityService::~ChromeIdentityService() { |
| 14 for (auto& observer : observer_list_) | 14 for (auto& observer : observer_list_) |
| 15 observer.OnChromeIdentityServiceWillBeDestroyed(); | 15 observer.OnChromeIdentityServiceWillBeDestroyed(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void ChromeIdentityService::DismissDialogs() {} | 18 void ChromeIdentityService::DismissDialogs() {} |
| 19 | 19 |
| 20 bool ChromeIdentityService::HandleApplicationOpenURL(UIApplication* application, | 20 bool ChromeIdentityService::HandleApplicationOpenURL(UIApplication* application, |
| 21 NSURL* url, | 21 NSURL* url, |
| 22 NSDictionary* options) { | 22 NSDictionary* options) { |
| 23 return false; | 23 return false; |
| 24 } | 24 } |
| 25 | 25 |
| 26 base::scoped_nsobject<UINavigationController> | 26 UINavigationController* ChromeIdentityService::CreateAccountDetailsController( |
| 27 ChromeIdentityService::NewAccountDetails( | |
| 28 ChromeIdentity* identity, | 27 ChromeIdentity* identity, |
| 29 id<ChromeIdentityBrowserOpener> browser_opener) { | 28 id<ChromeIdentityBrowserOpener> browser_opener) { |
| 30 return base::scoped_nsobject<UINavigationController>(); | 29 return nil; |
| 31 } | 30 } |
| 32 | 31 |
| 33 base::scoped_nsobject<UINavigationController> | 32 UINavigationController* |
| 34 ChromeIdentityService::NewWebAndAppSettingDetails( | 33 ChromeIdentityService::CreateWebAndAppSettingDetailsController( |
| 35 ChromeIdentity* identity, | 34 ChromeIdentity* identity, |
| 36 id<ChromeIdentityBrowserOpener> browser_opener) { | 35 id<ChromeIdentityBrowserOpener> browser_opener) { |
| 37 return base::scoped_nsobject<UINavigationController>(); | 36 return nil; |
| 38 } | 37 } |
| 39 | 38 |
| 40 base::scoped_nsobject<ChromeIdentityInteractionManager> | 39 ChromeIdentityInteractionManager* |
| 41 ChromeIdentityService::NewChromeIdentityInteractionManager( | 40 ChromeIdentityService::CreateChromeIdentityInteractionManager( |
| 42 ios::ChromeBrowserState* browser_state, | 41 ios::ChromeBrowserState* browser_state, |
| 43 id<ChromeIdentityInteractionManagerDelegate> delegate) const { | 42 id<ChromeIdentityInteractionManagerDelegate> delegate) const { |
| 44 return base::scoped_nsobject<ChromeIdentityInteractionManager>(); | 43 return nil; |
| 45 } | 44 } |
| 46 | 45 |
| 47 bool ChromeIdentityService::IsValidIdentity(ChromeIdentity* identity) const { | 46 bool ChromeIdentityService::IsValidIdentity(ChromeIdentity* identity) const { |
| 48 return false; | 47 return false; |
| 49 } | 48 } |
| 50 | 49 |
| 51 ChromeIdentity* ChromeIdentityService::GetIdentityWithEmail( | 50 ChromeIdentity* ChromeIdentityService::GetIdentityWithEmail( |
| 52 const std::string& email) const { | 51 const std::string& email) const { |
| 53 return nil; | 52 return nil; |
| 54 } | 53 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 for (auto& observer : observer_list_) | 140 for (auto& observer : observer_list_) |
| 142 observer.OnAccessTokenRefreshFailed(identity, user_info); | 141 observer.OnAccessTokenRefreshFailed(identity, user_info); |
| 143 } | 142 } |
| 144 | 143 |
| 145 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { | 144 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { |
| 146 for (auto& observer : observer_list_) | 145 for (auto& observer : observer_list_) |
| 147 observer.OnProfileUpdate(identity); | 146 observer.OnProfileUpdate(identity); |
| 148 } | 147 } |
| 149 | 148 |
| 150 } // namespace ios | 149 } // namespace ios |
| OLD | NEW |