OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/glue/sync_backend_host_core.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_core.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "chrome/browser/sync/glue/device_info.h" | 9 #include "chrome/browser/sync/glue/device_info.h" |
10 #include "chrome/browser/sync/glue/invalidation_adapter.h" | 10 #include "chrome/browser/sync/glue/invalidation_adapter.h" |
11 #include "chrome/browser/sync/glue/sync_backend_registrar.h" | 11 #include "chrome/browser/sync/glue/sync_backend_registrar.h" |
12 #include "chrome/browser/sync/glue/synced_device_tracker.h" | 12 #include "chrome/browser/sync/glue/synced_device_tracker.h" |
13 #include "chrome/common/chrome_version_info.h" | 13 #include "chrome/common/chrome_version_info.h" |
14 #include "components/invalidation/invalidation_util.h" | 14 #include "components/invalidation/invalidation_util.h" |
15 #include "components/invalidation/object_id_invalidation_map.h" | 15 #include "components/invalidation/object_id_invalidation_map.h" |
16 #include "sync/internal_api/public/events/protocol_event.h" | 16 #include "sync/internal_api/public/events/protocol_event.h" |
17 #include "sync/internal_api/public/http_post_provider_factory.h" | 17 #include "sync/internal_api/public/http_post_provider_factory.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), | 756 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), |
757 this, &SyncBackendHostCore::SaveChanges); | 757 this, &SyncBackendHostCore::SaveChanges); |
758 } | 758 } |
759 | 759 |
760 void SyncBackendHostCore::SaveChanges() { | 760 void SyncBackendHostCore::SaveChanges() { |
761 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 761 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
762 sync_manager_->SaveChanges(); | 762 sync_manager_->SaveChanges(); |
763 } | 763 } |
764 | 764 |
765 } // namespace browser_sync | 765 } // namespace browser_sync |
OLD | NEW |