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 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." |
| 11 #endif |
| 12 |
9 namespace ios { | 13 namespace ios { |
10 | 14 |
11 ChromeIdentityService::ChromeIdentityService() {} | 15 ChromeIdentityService::ChromeIdentityService() {} |
12 | 16 |
13 ChromeIdentityService::~ChromeIdentityService() { | 17 ChromeIdentityService::~ChromeIdentityService() { |
14 for (auto& observer : observer_list_) | 18 for (auto& observer : observer_list_) |
15 observer.OnChromeIdentityServiceWillBeDestroyed(); | 19 observer.OnChromeIdentityServiceWillBeDestroyed(); |
16 } | 20 } |
17 | 21 |
18 void ChromeIdentityService::DismissDialogs() {} | 22 void ChromeIdentityService::DismissDialogs() {} |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 for (auto& observer : observer_list_) | 144 for (auto& observer : observer_list_) |
141 observer.OnAccessTokenRefreshFailed(identity, user_info); | 145 observer.OnAccessTokenRefreshFailed(identity, user_info); |
142 } | 146 } |
143 | 147 |
144 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { | 148 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { |
145 for (auto& observer : observer_list_) | 149 for (auto& observer : observer_list_) |
146 observer.OnProfileUpdate(identity); | 150 observer.OnProfileUpdate(identity); |
147 } | 151 } |
148 | 152 |
149 } // namespace ios | 153 } // namespace ios |
OLD | NEW |