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

Side by Side Diff: ios/chrome/browser/signin/chrome_identity_service_observer_bridge.mm

Issue 2848673003: [ObjC ARC] Converts ios/chrome/browser/signin:signin to ARC. (Closed)
Patch Set: Created 3 years, 7 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
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/chrome/browser/signin/chrome_identity_service_observer_bridge.h" 5 #include "ios/chrome/browser/signin/chrome_identity_service_observer_bridge.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 8 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
10 ChromeIdentityServiceObserverBridge::ChromeIdentityServiceObserverBridge( 14 ChromeIdentityServiceObserverBridge::ChromeIdentityServiceObserverBridge(
11 id<ChromeIdentityServiceObserver> observer) 15 id<ChromeIdentityServiceObserver> observer)
12 : observer_(observer), scoped_observer_(this) { 16 : observer_(observer), scoped_observer_(this) {
13 DCHECK(observer_); 17 DCHECK(observer_);
14 scoped_observer_.Add( 18 scoped_observer_.Add(
15 ios::GetChromeBrowserProvider()->GetChromeIdentityService()); 19 ios::GetChromeBrowserProvider()->GetChromeIdentityService());
16 } 20 }
17 21
18 ChromeIdentityServiceObserverBridge::~ChromeIdentityServiceObserverBridge() {} 22 ChromeIdentityServiceObserverBridge::~ChromeIdentityServiceObserverBridge() {}
19 23
(...skipping 18 matching lines...) Expand all
38 } 42 }
39 43
40 void ChromeIdentityServiceObserverBridge:: 44 void ChromeIdentityServiceObserverBridge::
41 OnChromeIdentityServiceWillBeDestroyed() { 45 OnChromeIdentityServiceWillBeDestroyed() {
42 if ([observer_ 46 if ([observer_
43 respondsToSelector:@selector( 47 respondsToSelector:@selector(
44 onChromeIdentityServiceWillBeDestroyed)]) { 48 onChromeIdentityServiceWillBeDestroyed)]) {
45 [observer_ onChromeIdentityServiceWillBeDestroyed]; 49 [observer_ onChromeIdentityServiceWillBeDestroyed];
46 } 50 }
47 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698