| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/sync/driver/sync_service.h" | 5 #include "components/sync/driver/sync_service.h" |
| 6 | 6 |
| 7 #include "components/sync/core/sync_manager.h" | 7 #include "components/sync/core/sync_manager.h" |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace sync_driver { |
| 10 | 10 |
| 11 SyncSetupInProgressHandle::SyncSetupInProgressHandle(base::Closure on_destroy) | 11 SyncSetupInProgressHandle::SyncSetupInProgressHandle(base::Closure on_destroy) |
| 12 : on_destroy_(on_destroy) {} | 12 : on_destroy_(on_destroy) {} |
| 13 | 13 |
| 14 SyncSetupInProgressHandle::~SyncSetupInProgressHandle() { | 14 SyncSetupInProgressHandle::~SyncSetupInProgressHandle() { |
| 15 on_destroy_.Run(); | 15 on_destroy_.Run(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 SyncService::SyncTokenStatus::SyncTokenStatus() | 18 SyncService::SyncTokenStatus::SyncTokenStatus() |
| 19 : connection_status(CONNECTION_NOT_ATTEMPTED), | 19 : connection_status(syncer::CONNECTION_NOT_ATTEMPTED), |
| 20 last_get_token_error(GoogleServiceAuthError::AuthErrorNone()) {} | 20 last_get_token_error(GoogleServiceAuthError::AuthErrorNone()) {} |
| 21 | 21 |
| 22 } // namespace syncer | 22 } // namespace sync_driver |
| OLD | NEW |