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" | 13 #include "base/compiler_specific.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/profiler/scoped_tracker.h" | 16 #include "base/profiler/scoped_tracker.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
19 #include "components/sync_driver/data_type_controller.h" | 19 #include "components/sync_driver/data_type_controller.h" |
20 #include "components/sync_driver/data_type_encryption_handler.h" | 20 #include "components/sync_driver/data_type_encryption_handler.h" |
21 #include "components/sync_driver/data_type_manager_observer.h" | 21 #include "components/sync_driver/data_type_manager_observer.h" |
22 #include "components/sync_driver/data_type_status_table.h" | 22 #include "components/sync_driver/data_type_status_table.h" |
23 #include "sync/internal_api/public/data_type_debug_info_listener.h" | 23 #include "sync/internal_api/public/data_type_debug_info_listener.h" |
24 | 24 |
25 namespace sync_driver { | 25 namespace sync_driver { |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 DataTypeManager::State DataTypeManagerImpl::state() const { | 651 DataTypeManager::State DataTypeManagerImpl::state() const { |
652 return state_; | 652 return state_; |
653 } | 653 } |
654 | 654 |
655 void DataTypeManagerImpl::AddToConfigureTime() { | 655 void DataTypeManagerImpl::AddToConfigureTime() { |
656 DCHECK(!last_restart_time_.is_null()); | 656 DCHECK(!last_restart_time_.is_null()); |
657 configure_time_delta_ += (base::Time::Now() - last_restart_time_); | 657 configure_time_delta_ += (base::Time::Now() - last_restart_time_); |
658 } | 658 } |
659 | 659 |
660 } // namespace sync_driver | 660 } // namespace sync_driver |
OLD | NEW |