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

Side by Side Diff: sync/engine/cleanup_disabled_types_command.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 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/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
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
OLDNEW
« no previous file with comments | « sync/engine/cleanup_disabled_types_command.h ('k') | sync/engine/cleanup_disabled_types_command_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698