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

Side by Side Diff: ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.mm

Issue 2791393003: [ObjC ARC] Converts ios/chrome/browser/ui/ntp/recent_tabs:recent_tabs to ARC. (Closed)
Patch Set: weak Created 3 years, 8 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/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm ('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 #import "ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h" 5 #import "ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h"
6 6
7 #include "components/browser_sync/profile_sync_service.h" 7 #include "components/browser_sync/profile_sync_service.h"
8 #include "components/signin/core/browser/signin_manager.h" 8 #include "components/signin/core/browser/signin_manager.h"
9 #include "components/sync/driver/sync_service.h" 9 #include "components/sync/driver/sync_service.h"
10 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 10 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
11 #include "ios/chrome/browser/signin/signin_manager_factory.h" 11 #include "ios/chrome/browser/signin/signin_manager_factory.h"
12 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 12 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
13 #import "ios/chrome/browser/ui/ntp/recent_tabs/recent_tabs_table_view_controller .h" 13 #import "ios/chrome/browser/ui/ntp/recent_tabs/recent_tabs_table_view_controller .h"
14 14
15 #if !defined(__has_feature) || !__has_feature(objc_arc)
16 #error "This file requires ARC support."
17 #endif
18
15 namespace synced_sessions { 19 namespace synced_sessions {
16 20
17 #pragma mark - SyncedSessionsObserverBridge 21 #pragma mark - SyncedSessionsObserverBridge
18 22
19 SyncedSessionsObserverBridge::SyncedSessionsObserverBridge( 23 SyncedSessionsObserverBridge::SyncedSessionsObserverBridge(
20 id<SyncedSessionsObserver> owner, 24 id<SyncedSessionsObserver> owner,
21 ios::ChromeBrowserState* browserState) 25 ios::ChromeBrowserState* browserState)
22 : SyncObserverBridge( 26 : SyncObserverBridge(
23 owner, 27 owner,
24 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browserState)), 28 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browserState)),
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #pragma mark - SigninManagerBase::Observer 70 #pragma mark - SigninManagerBase::Observer
67 71
68 void SyncedSessionsObserverBridge::GoogleSignedOut( 72 void SyncedSessionsObserverBridge::GoogleSignedOut(
69 const std::string& account_id, 73 const std::string& account_id,
70 const std::string& username) { 74 const std::string& username) {
71 first_sync_cycle_is_completed_ = false; 75 first_sync_cycle_is_completed_ = false;
72 [owner_ reloadSessions]; 76 [owner_ reloadSessions];
73 } 77 }
74 78
75 } // namespace synced_sessions 79 } // namespace synced_sessions
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698