blob: 866cf6c35d5580880f6e5cf3671a37e2b103964d [file] [log] [blame]
maxbogue93150a5d2015-08-31 21:08:321// Copyright 2015 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
maxbogue455a57e32016-08-14 00:08:325#include "components/sync/driver/sync_service.h"
maxbogue93150a5d2015-08-31 21:08:326
Max Boguefef332d2016-07-28 22:09:097#include "components/sync/core/sync_manager.h"
maxbogue93150a5d2015-08-31 21:08:328#include "google_apis/gaia/google_service_auth_error.h"
maxbogue93150a5d2015-08-31 21:08:329
10namespace sync_driver {
11
tommyclif3a1551e2016-06-21 18:11:2312SyncSetupInProgressHandle::SyncSetupInProgressHandle(base::Closure on_destroy)
13 : on_destroy_(on_destroy) {}
14
15SyncSetupInProgressHandle::~SyncSetupInProgressHandle() {
16 on_destroy_.Run();
17}
18
maxbogue93150a5d2015-08-31 21:08:3219SyncService::SyncTokenStatus::SyncTokenStatus()
20 : connection_status(syncer::CONNECTION_NOT_ATTEMPTED),
21 last_get_token_error(GoogleServiceAuthError::AuthErrorNone()) {}
maxbogue93150a5d2015-08-31 21:08:3222
tommyclif3a1551e2016-06-21 18:11:2323} // namespace sync_driver