Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/sync/glue/model_association_manager.cc

Issue 10985008: sync: Add DeviceInfo protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another missing include Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/device_info.cc ('k') | chrome/browser/sync/glue/session_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698