cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ios / chrome / browser / sync / sync_observer_bridge.mm
blob0ccb02acd1bead48d5504625656d7e2f2b744280
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) {
13   DCHECK(delegate);
14   if (sync_service)
15     scoped_observer_.Add(sync_service);
18 SyncObserverBridge::~SyncObserverBridge() {
21 void SyncObserverBridge::OnStateChanged() {
22   [delegate_ onSyncStateChanged];