| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <functional> | 6 #include <functional> |
| 7 | 7 |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 namespace browser_sync { | 30 namespace browser_sync { |
| 31 // The amount of time we wait for a datatype to load. If the type has | 31 // The amount of time we wait for a datatype to load. If the type has |
| 32 // not finished loading we move on to the next type. Once this type | 32 // not finished loading we move on to the next type. Once this type |
| 33 // finishes loading we will do a configure to associate this type. Note | 33 // finishes loading we will do a configure to associate this type. Note |
| 34 // that in most cases types finish loading before this timeout. | 34 // that in most cases types finish loading before this timeout. |
| 35 const int64 kDataTypeLoadWaitTimeInSeconds = 120; | 35 const int64 kDataTypeLoadWaitTimeInSeconds = 120; |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 static const syncer::ModelType kStartOrder[] = { | 38 static const syncer::ModelType kStartOrder[] = { |
| 39 syncer::NIGORI, // Listed for completeness. | 39 syncer::NIGORI, // Listed for completeness. |
| 40 syncer::DEVICE_INFO, // Listed for completeness. |
| 40 syncer::BOOKMARKS, // UI thread datatypes. | 41 syncer::BOOKMARKS, // UI thread datatypes. |
| 41 syncer::PREFERENCES, | 42 syncer::PREFERENCES, |
| 42 syncer::EXTENSIONS, | 43 syncer::EXTENSIONS, |
| 43 syncer::APPS, | 44 syncer::APPS, |
| 44 syncer::THEMES, | 45 syncer::THEMES, |
| 45 syncer::SEARCH_ENGINES, | 46 syncer::SEARCH_ENGINES, |
| 46 syncer::SESSIONS, | 47 syncer::SESSIONS, |
| 47 syncer::APP_NOTIFICATIONS, | 48 syncer::APP_NOTIFICATIONS, |
| 48 syncer::AUTOFILL, // Non-UI thread datatypes. | 49 syncer::AUTOFILL, // Non-UI thread datatypes. |
| 49 syncer::AUTOFILL_PROFILE, | 50 syncer::AUTOFILL_PROFILE, |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 } | 502 } |
| 502 return result; | 503 return result; |
| 503 } | 504 } |
| 504 | 505 |
| 505 base::OneShotTimer<ModelAssociationManager>* | 506 base::OneShotTimer<ModelAssociationManager>* |
| 506 ModelAssociationManager::GetTimerForTesting() { | 507 ModelAssociationManager::GetTimerForTesting() { |
| 507 return &timer_; | 508 return &timer_; |
| 508 } | 509 } |
| 509 | 510 |
| 510 } // namespace browser_sync | 511 } // namespace browser_sync |
| OLD | NEW |