| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 5 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
| 6 | 6 |
| 7 #include "chrome/browser/sync/profile_sync_service.h" | 7 #include "chrome/browser/sync/profile_sync_service.h" |
| 8 #include "chrome/browser/sync/profile_sync_service_observer.h" | 8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 9 | 9 |
| 10 SingleClientStatusChangeChecker::SingleClientStatusChangeChecker( | 10 SingleClientStatusChangeChecker::SingleClientStatusChangeChecker( |
| 11 ProfileSyncService* service) : service_(service) {} | 11 ProfileSyncService* service) : service_(service) {} |
| 12 | 12 |
| 13 SingleClientStatusChangeChecker::~SingleClientStatusChangeChecker() {} | 13 SingleClientStatusChangeChecker::~SingleClientStatusChangeChecker() {} |
| 14 | 14 |
| 15 void SingleClientStatusChangeChecker::InitObserver( | 15 void SingleClientStatusChangeChecker::InitObserver( |
| 16 ProfileSyncServiceObserver* obs) { | 16 ProfileSyncServiceHarness* obs) { |
| 17 service()->AddObserver(obs); | 17 service()->AddObserver(obs); |
| 18 } | 18 } |
| 19 | 19 |
| 20 void SingleClientStatusChangeChecker::UninitObserver( | 20 void SingleClientStatusChangeChecker::UninitObserver( |
| 21 ProfileSyncServiceObserver* obs) { | 21 ProfileSyncServiceHarness* obs) { |
| 22 service()->RemoveObserver(obs); | 22 service()->RemoveObserver(obs); |
| 23 } | 23 } |
| OLD | NEW |