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

Side by Side Diff: components/sync_driver/model_association_manager.cc

Issue 1314903004: Sync: Refactoring DataTypeController to make the design shareable with USS datatypes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR comments Created 5 years, 3 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
OLDNEW
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/model_association_manager.h" 5 #include "components/sync_driver/model_association_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
14 #include "sync/api/sync_merge_result.h"
14 #include "sync/internal_api/public/base/model_type.h" 15 #include "sync/internal_api/public/base/model_type.h"
15 16
16 using syncer::ModelTypeSet; 17 using syncer::ModelTypeSet;
17 18
18 namespace sync_driver { 19 namespace sync_driver {
19 20
20 namespace { 21 namespace {
21 22
22 static const syncer::ModelType kStartOrder[] = { 23 static const syncer::ModelType kStartOrder[] = {
23 syncer::NIGORI, // Listed for completeness. 24 syncer::NIGORI, // Listed for completeness.
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 418
418 delegate_->OnModelAssociationDone(result); 419 delegate_->OnModelAssociationDone(result);
419 } 420 }
420 421
421 base::OneShotTimer<ModelAssociationManager>* 422 base::OneShotTimer<ModelAssociationManager>*
422 ModelAssociationManager::GetTimerForTesting() { 423 ModelAssociationManager::GetTimerForTesting() {
423 return &timer_; 424 return &timer_;
424 } 425 }
425 426
426 } // namespace sync_driver 427 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor.h ('k') | components/sync_driver/non_ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698