Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: ios/public/provider/chrome/browser/signin/chrome_identity_service.mm

Issue 2934843002: Adds signin provider APIs that don't return scoped_nsobjects. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/public/provider/chrome/browser/signin/chrome_identity_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UINavigationController* ChromeIdentityService::CreateAccountDetailsController(
27 ChromeIdentity* identity,
28 id<ChromeIdentityBrowserOpener> browser_opener) {
29 return nil;
30 }
31
32 UINavigationController*
33 ChromeIdentityService::CreateWebAndAppSettingDetailsController(
34 ChromeIdentity* identity,
35 id<ChromeIdentityBrowserOpener> browser_opener) {
36 return nil;
37 }
38
39 ChromeIdentityInteractionManager*
40 ChromeIdentityService::CreateChromeIdentityInteractionManager(
41 ios::ChromeBrowserState* browser_state,
42 id<ChromeIdentityInteractionManagerDelegate> delegate) const {
43 return nil;
44 }
45
26 base::scoped_nsobject<UINavigationController> 46 base::scoped_nsobject<UINavigationController>
27 ChromeIdentityService::NewAccountDetails( 47 ChromeIdentityService::NewAccountDetails(
28 ChromeIdentity* identity, 48 ChromeIdentity* identity,
29 id<ChromeIdentityBrowserOpener> browser_opener) { 49 id<ChromeIdentityBrowserOpener> browser_opener) {
30 return base::scoped_nsobject<UINavigationController>(); 50 return base::scoped_nsobject<UINavigationController>();
31 } 51 }
32 52
33 base::scoped_nsobject<UINavigationController> 53 base::scoped_nsobject<UINavigationController>
34 ChromeIdentityService::NewWebAndAppSettingDetails( 54 ChromeIdentityService::NewWebAndAppSettingDetails(
35 ChromeIdentity* identity, 55 ChromeIdentity* identity,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 for (auto& observer : observer_list_) 161 for (auto& observer : observer_list_)
142 observer.OnAccessTokenRefreshFailed(identity, user_info); 162 observer.OnAccessTokenRefreshFailed(identity, user_info);
143 } 163 }
144 164
145 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) { 165 void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) {
146 for (auto& observer : observer_list_) 166 for (auto& observer : observer_list_)
147 observer.OnProfileUpdate(identity); 167 observer.OnProfileUpdate(identity);
148 } 168 }
149 169
150 } // namespace ios 170 } // namespace ios
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/signin/chrome_identity_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698