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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 for (auto& observer : observer_list_) | 142 for (auto& observer : observer_list_) |
139 observer.OnAccessTokenRefreshFailed(identity, user_info); | 143 observer.OnAccessTokenRefreshFailed(identity, user_info); |
140 } | 144 } |
141 | 145 |
142 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { | 146 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { |
143 for (auto& observer : observer_list_) | 147 for (auto& observer : observer_list_) |
144 observer.OnProfileUpdate(identity); | 148 observer.OnProfileUpdate(identity); |
145 } | 149 } |
146 | 150 |
147 } // namespace ios | 151 } // namespace ios |
OLD | NEW |