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 "components/sync/driver/data_type_manager_impl.h" | 5 #include "components/sync/driver/data_type_manager_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
16 #include "base/profiler/scoped_tracker.h" | 15 #include "base/profiler/scoped_tracker.h" |
17 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
20 #include "components/sync/core/data_type_debug_info_listener.h" | 19 #include "components/sync/core/data_type_debug_info_listener.h" |
21 #include "components/sync/driver/data_type_encryption_handler.h" | 20 #include "components/sync/driver/data_type_encryption_handler.h" |
22 #include "components/sync/driver/data_type_manager_observer.h" | 21 #include "components/sync/driver/data_type_manager_observer.h" |
23 #include "components/sync/driver/data_type_status_table.h" | 22 #include "components/sync/driver/data_type_status_table.h" |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 DCHECK(!last_restart_time_.is_null()); | 683 DCHECK(!last_restart_time_.is_null()); |
685 configure_time_delta_ += (base::Time::Now() - last_restart_time_); | 684 configure_time_delta_ += (base::Time::Now() - last_restart_time_); |
686 } | 685 } |
687 | 686 |
688 ModelTypeSet DataTypeManagerImpl::GetEnabledTypes() const { | 687 ModelTypeSet DataTypeManagerImpl::GetEnabledTypes() const { |
689 return syncer::Difference(last_requested_types_, | 688 return syncer::Difference(last_requested_types_, |
690 data_type_status_table_.GetFailedTypes()); | 689 data_type_status_table_.GetFailedTypes()); |
691 } | 690 } |
692 | 691 |
693 } // namespace sync_driver | 692 } // namespace sync_driver |
OLD | NEW |