OLD | NEW |
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/engine/cleanup_disabled_types_command.h" | 5 #include "sync/engine/cleanup_disabled_types_command.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "chrome/browser/sync/sessions/sync_session.h" | 9 #include "sync/sessions/sync_session.h" |
10 #include "chrome/browser/sync/sessions/sync_session_context.h" | 10 #include "sync/sessions/sync_session_context.h" |
11 #include "chrome/browser/sync/syncable/model_type.h" | 11 #include "sync/syncable/model_type.h" |
12 #include "chrome/browser/sync/syncable/syncable.h" | 12 #include "sync/syncable/syncable.h" |
13 | 13 |
14 namespace browser_sync { | 14 namespace browser_sync { |
15 | 15 |
16 CleanupDisabledTypesCommand::CleanupDisabledTypesCommand() {} | 16 CleanupDisabledTypesCommand::CleanupDisabledTypesCommand() {} |
17 CleanupDisabledTypesCommand::~CleanupDisabledTypesCommand() {} | 17 CleanupDisabledTypesCommand::~CleanupDisabledTypesCommand() {} |
18 | 18 |
19 SyncerError CleanupDisabledTypesCommand::ExecuteImpl( | 19 SyncerError CleanupDisabledTypesCommand::ExecuteImpl( |
20 sessions::SyncSession* session) { | 20 sessions::SyncSession* session) { |
21 using syncable::ModelTypeSet; | 21 using syncable::ModelTypeSet; |
22 using syncable::ModelTypeSetToString; | 22 using syncable::ModelTypeSetToString; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 if (to_cleanup.Empty()) | 62 if (to_cleanup.Empty()) |
63 return SYNCER_OK; | 63 return SYNCER_OK; |
64 | 64 |
65 session->context()->directory()->PurgeEntriesWithTypeIn(to_cleanup); | 65 session->context()->directory()->PurgeEntriesWithTypeIn(to_cleanup); |
66 return SYNCER_OK; | 66 return SYNCER_OK; |
67 } | 67 } |
68 | 68 |
69 } // namespace browser_sync | 69 } // namespace browser_sync |
70 | 70 |
OLD | NEW |