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

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

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 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/generic_change_processor.h" 5 #include "components/sync_driver/generic_change_processor.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/sync_driver/sync_api_component_factory.h" 10 #include "components/sync_driver/sync_api_component_factory.h"
11 #include "sync/api/sync_change.h" 11 #include "sync/api/sync_change.h"
12 #include "sync/api/sync_error.h" 12 #include "sync/api/sync_error.h"
13 #include "sync/api/syncable_service.h" 13 #include "sync/api/syncable_service.h"
14 #include "sync/internal_api/public/base_node.h" 14 #include "sync/internal_api/public/base_node.h"
15 #include "sync/internal_api/public/change_record.h" 15 #include "sync/internal_api/public/change_record.h"
16 #include "sync/internal_api/public/read_node.h" 16 #include "sync/internal_api/public/read_node.h"
17 #include "sync/internal_api/public/read_transaction.h" 17 #include "sync/internal_api/public/read_transaction.h"
18 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" 18 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
19 #include "sync/internal_api/public/write_node.h" 19 #include "sync/internal_api/public/write_node.h"
20 #include "sync/internal_api/public/write_transaction.h" 20 #include "sync/internal_api/public/write_transaction.h"
21 #include "sync/syncable/entry.h" // TODO(tim): Bug 123674. 21 #include "sync/syncable/entry.h" // TODO(tim): Bug 123674.
22 22
23 namespace browser_sync { 23 namespace sync_driver {
24 24
25 namespace { 25 namespace {
26 26
27 const int kContextSizeLimit = 1024; // Datatype context size limit. 27 const int kContextSizeLimit = 1024; // Datatype context size limit.
28 28
29 void SetNodeSpecifics(const sync_pb::EntitySpecifics& entity_specifics, 29 void SetNodeSpecifics(const sync_pb::EntitySpecifics& entity_specifics,
30 syncer::WriteNode* write_node) { 30 syncer::WriteNode* write_node) {
31 if (syncer::GetModelTypeFromSpecifics(entity_specifics) == 31 if (syncer::GetModelTypeFromSpecifics(entity_specifics) ==
32 syncer::PASSWORDS) { 32 syncer::PASSWORDS) {
33 write_node->SetPasswordSpecifics( 33 write_node->SetPasswordSpecifics(
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 } 725 }
726 726
727 void GenericChangeProcessor::StartImpl() { 727 void GenericChangeProcessor::StartImpl() {
728 } 728 }
729 729
730 syncer::UserShare* GenericChangeProcessor::share_handle() const { 730 syncer::UserShare* GenericChangeProcessor::share_handle() const {
731 DCHECK(CalledOnValidThread()); 731 DCHECK(CalledOnValidThread());
732 return share_handle_; 732 return share_handle_;
733 } 733 }
734 734
735 } // namespace browser_sync 735 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor.h ('k') | components/sync_driver/generic_change_processor_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698