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

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

Issue 12286007: Revert "Revert 182527" ([Sync] Make SESSIONS an implicit type) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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 "chrome/browser/sync/glue/model_association_manager.h" 5 #include "chrome/browser/sync/glue/model_association_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 10 matching lines...) Expand all
21 // not finished loading we move on to the next type. Once this type 21 // not finished loading we move on to the next type. Once this type
22 // finishes loading we will do a configure to associate this type. Note 22 // finishes loading we will do a configure to associate this type. Note
23 // that in most cases types finish loading before this timeout. 23 // that in most cases types finish loading before this timeout.
24 const int64 kDataTypeLoadWaitTimeInSeconds = 120; 24 const int64 kDataTypeLoadWaitTimeInSeconds = 120;
25 namespace { 25 namespace {
26 26
27 static const syncer::ModelType kStartOrder[] = { 27 static const syncer::ModelType kStartOrder[] = {
28 syncer::NIGORI, // Listed for completeness. 28 syncer::NIGORI, // Listed for completeness.
29 syncer::DEVICE_INFO, // Listed for completeness. 29 syncer::DEVICE_INFO, // Listed for completeness.
30 syncer::EXPERIMENTS, // Listed for completeness. 30 syncer::EXPERIMENTS, // Listed for completeness.
31 syncer::PROXY_TABS, // Listed for completeness.
31 syncer::BOOKMARKS, // UI thread datatypes. 32 syncer::BOOKMARKS, // UI thread datatypes.
32 syncer::PREFERENCES, 33 syncer::PREFERENCES,
33 syncer::PRIORITY_PREFERENCES, 34 syncer::PRIORITY_PREFERENCES,
34 syncer::EXTENSIONS, 35 syncer::EXTENSIONS,
35 syncer::APPS, 36 syncer::APPS,
36 syncer::THEMES, 37 syncer::THEMES,
37 syncer::SEARCH_ENGINES, 38 syncer::SEARCH_ENGINES,
38 syncer::SESSIONS, 39 syncer::SESSIONS,
39 syncer::APP_NOTIFICATIONS, 40 syncer::APP_NOTIFICATIONS,
40 syncer::DICTIONARY, 41 syncer::DICTIONARY,
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 551 }
551 return result; 552 return result;
552 } 553 }
553 554
554 base::OneShotTimer<ModelAssociationManager>* 555 base::OneShotTimer<ModelAssociationManager>*
555 ModelAssociationManager::GetTimerForTesting() { 556 ModelAssociationManager::GetTimerForTesting() {
556 return &timer_; 557 return &timer_;
557 } 558 }
558 559
559 } // namespace browser_sync 560 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.js ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698