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.
5 #include "ios/chrome/browser/sync/sync_observer_bridge.h"
7 #include "base/logging.h"
8 #include "components/sync_driver/sync_service.h"
10 SyncObserverBridge::SyncObserverBridge(id<SyncObserverModelBridge> delegate,
11 sync_driver::SyncService* sync_service)
12 : delegate_(delegate), scoped_observer_(this) {
15 scoped_observer_.Add(sync_service);
18 SyncObserverBridge::~SyncObserverBridge() {
21 void SyncObserverBridge::OnStateChanged() {
22 [delegate_ onSyncStateChanged];