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

Side by Side Diff: components/signin/ios/browser/merge_session_observer_bridge.mm

Issue 2928383002: [ObjC ARC] Converts components/signin/ios/browser:browser to ARC. (Closed)
Patch Set: Review fixes. 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/signin/ios/browser/merge_session_observer_bridge.h" 5 #include "components/signin/ios/browser/merge_session_observer_bridge.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "google_apis/gaia/google_service_auth_error.h" 8 #include "google_apis/gaia/google_service_auth_error.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
10 MergeSessionObserverBridge::MergeSessionObserverBridge( 14 MergeSessionObserverBridge::MergeSessionObserverBridge(
11 id<MergeSessionObserverBridgeDelegate> delegate, 15 id<MergeSessionObserverBridgeDelegate> delegate,
12 GaiaCookieManagerService* cookie_manager_service) 16 GaiaCookieManagerService* cookie_manager_service)
13 : delegate_(delegate), cookie_manager_service_(cookie_manager_service) { 17 : delegate_(delegate), cookie_manager_service_(cookie_manager_service) {
14 DCHECK(delegate); 18 DCHECK(delegate);
15 DCHECK(cookie_manager_service); 19 DCHECK(cookie_manager_service);
16 cookie_manager_service_->AddObserver(this); 20 cookie_manager_service_->AddObserver(this);
17 } 21 }
18 22
19 MergeSessionObserverBridge::~MergeSessionObserverBridge() { 23 MergeSessionObserverBridge::~MergeSessionObserverBridge() {
20 cookie_manager_service_->RemoveObserver(this); 24 cookie_manager_service_->RemoveObserver(this);
21 } 25 }
22 26
23 void MergeSessionObserverBridge::OnAddAccountToCookieCompleted( 27 void MergeSessionObserverBridge::OnAddAccountToCookieCompleted(
24 const std::string& account_id, 28 const std::string& account_id,
25 const GoogleServiceAuthError& error) { 29 const GoogleServiceAuthError& error) {
26 [delegate_ onMergeSessionCompleted:account_id error:error]; 30 [delegate_ onMergeSessionCompleted:account_id error:error];
27 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698