| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
| 6 |
| 7 #include "chrome/browser/sync/profile_sync_service.h" |
| 8 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 9 |
| 10 SingleClientStatusChangeChecker::SingleClientStatusChangeChecker( |
| 11 ProfileSyncService* service) : service_(service) {} |
| 12 |
| 13 SingleClientStatusChangeChecker::~SingleClientStatusChangeChecker() {} |
| 14 |
| 15 base::TimeDelta SingleClientStatusChangeChecker::GetTimeoutDuration() { |
| 16 return base::TimeDelta::FromSeconds(45); |
| 17 } |
| 18 |
| 19 void SingleClientStatusChangeChecker::InitObserver( |
| 20 ProfileSyncServiceObserver* obs) { |
| 21 service()->AddObserver(obs); |
| 22 } |
| 23 |
| 24 void SingleClientStatusChangeChecker::UninitObserver( |
| 25 ProfileSyncServiceObserver* obs) { |
| 26 service()->RemoveObserver(obs); |
| 27 } |
| 28 |
| 29 |
| OLD | NEW |