| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/engine/verify_updates_command.h" | 5 #include "chrome/browser/sync/engine/verify_updates_command.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/location.h" | 9 #include "base/location.h" |
| 8 #include "chrome/browser/sync/engine/syncer.h" | 10 #include "chrome/browser/sync/engine/syncer.h" |
| 9 #include "chrome/browser/sync/engine/syncer_proto_util.h" | 11 #include "chrome/browser/sync/engine/syncer_proto_util.h" |
| 10 #include "chrome/browser/sync/engine/syncer_types.h" | 12 #include "chrome/browser/sync/engine/syncer_types.h" |
| 11 #include "chrome/browser/sync/engine/syncer_util.h" | 13 #include "chrome/browser/sync/engine/syncer_util.h" |
| 12 #include "chrome/browser/sync/engine/syncproto.h" | 14 #include "chrome/browser/sync/engine/syncproto.h" |
| 13 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 15 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
| 14 #include "chrome/browser/sync/syncable/directory_manager.h" | 16 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 15 #include "chrome/browser/sync/syncable/syncable.h" | 17 #include "chrome/browser/sync/syncable/syncable.h" |
| 16 | 18 |
| 17 namespace browser_sync { | 19 namespace browser_sync { |
| 18 | 20 |
| 19 using syncable::ScopedDirLookup; | 21 using syncable::ScopedDirLookup; |
| 20 using syncable::SyncName; | |
| 21 using syncable::WriteTransaction; | 22 using syncable::WriteTransaction; |
| 22 | 23 |
| 23 using syncable::GET_BY_ID; | 24 using syncable::GET_BY_ID; |
| 24 using syncable::SYNCER; | 25 using syncable::SYNCER; |
| 25 | 26 |
| 26 VerifyUpdatesCommand::VerifyUpdatesCommand() {} | 27 VerifyUpdatesCommand::VerifyUpdatesCommand() {} |
| 27 VerifyUpdatesCommand::~VerifyUpdatesCommand() {} | 28 VerifyUpdatesCommand::~VerifyUpdatesCommand() {} |
| 28 | 29 |
| 29 void VerifyUpdatesCommand::ModelChangingExecuteImpl( | 30 void VerifyUpdatesCommand::ModelChangingExecuteImpl( |
| 30 sessions::SyncSession* session) { | 31 sessions::SyncSession* session) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 deleted, is_directory, model_type); | 120 deleted, is_directory, model_type); |
| 120 } | 121 } |
| 121 | 122 |
| 122 if (VERIFY_UNDECIDED == result.value) | 123 if (VERIFY_UNDECIDED == result.value) |
| 123 result.value = VERIFY_SUCCESS; // No news is good news. | 124 result.value = VERIFY_SUCCESS; // No news is good news. |
| 124 | 125 |
| 125 return result; // This might be VERIFY_SUCCESS as well | 126 return result; // This might be VERIFY_SUCCESS as well |
| 126 } | 127 } |
| 127 | 128 |
| 128 } // namespace browser_sync | 129 } // namespace browser_sync |
| OLD | NEW |