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

Side by Side Diff: ios/chrome/browser/sync/sync_observer_bridge.mm

Issue 1090413007: [iOS] Upstream observer bridges (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 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/sync/sync_observer_bridge.h ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ios/chrome/browser/sync/sync_observer_bridge.h"
6
7 #include "base/logging.h"
8 #include "components/sync_driver/sync_service.h"
9
10 SyncObserverBridge::SyncObserverBridge(id<SyncObserverModelBridge> delegate,
11 sync_driver::SyncService* sync_service)
12 : delegate_(delegate), scoped_observer_(this) {
13 DCHECK(delegate);
14 if (sync_service)
15 scoped_observer_.Add(sync_service);
16 }
17
18 SyncObserverBridge::~SyncObserverBridge() {
19 }
20
21 void SyncObserverBridge::OnStateChanged() {
22 [delegate_ onSyncStateChanged];
23 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/sync/sync_observer_bridge.h ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698