OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/data_type_manager_impl.h" | 5 #include "chrome/browser/sync/glue/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/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "chrome/browser/sync/glue/data_type_controller.h" | 17 #include "chrome/browser/sync/glue/data_type_controller.h" |
18 #include "chrome/browser/sync/glue/sync_backend_host.h" | 18 #include "chrome/browser/sync/glue/sync_backend_host.h" |
19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/notification_details.h" | 21 #include "content/public/browser/notification_details.h" |
22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
23 #include "content/public/browser/notification_source.h" | 23 #include "content/public/browser/notification_source.h" |
24 | 24 |
| 25 using content::BrowserThread; |
| 26 |
25 namespace browser_sync { | 27 namespace browser_sync { |
26 | 28 |
27 namespace { | 29 namespace { |
28 | 30 |
29 static const syncable::ModelType kStartOrder[] = { | 31 static const syncable::ModelType kStartOrder[] = { |
30 syncable::NIGORI, // Listed for completeness. | 32 syncable::NIGORI, // Listed for completeness. |
31 syncable::BOOKMARKS, | 33 syncable::BOOKMARKS, |
32 syncable::PREFERENCES, | 34 syncable::PREFERENCES, |
33 syncable::AUTOFILL, | 35 syncable::AUTOFILL, |
34 syncable::AUTOFILL_PROFILE, | 36 syncable::AUTOFILL_PROFILE, |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 content::Source<DataTypeManager>(this), | 515 content::Source<DataTypeManager>(this), |
514 content::NotificationService::NoDetails()); | 516 content::NotificationService::NoDetails()); |
515 } | 517 } |
516 | 518 |
517 void DataTypeManagerImpl::AddToConfigureTime() { | 519 void DataTypeManagerImpl::AddToConfigureTime() { |
518 DCHECK(!last_restart_time_.is_null()); | 520 DCHECK(!last_restart_time_.is_null()); |
519 configure_time_delta_ += (base::Time::Now() - last_restart_time_); | 521 configure_time_delta_ += (base::Time::Now() - last_restart_time_); |
520 } | 522 } |
521 | 523 |
522 } // namespace browser_sync | 524 } // namespace browser_sync |
OLD | NEW |