| 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/clear_data_command.h" | 5 #include "sync/engine/clear_data_command.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/sync/engine/syncer.h" | 9 #include "sync/engine/syncer.h" |
| 10 #include "chrome/browser/sync/engine/syncer_proto_util.h" | 10 #include "sync/engine/syncer_proto_util.h" |
| 11 #include "chrome/browser/sync/engine/syncproto.h" | 11 #include "sync/engine/syncproto.h" |
| 12 #include "chrome/browser/sync/sessions/sync_session.h" | 12 #include "sync/sessions/sync_session.h" |
| 13 | 13 |
| 14 namespace browser_sync { | 14 namespace browser_sync { |
| 15 | 15 |
| 16 using sessions::StatusController; | 16 using sessions::StatusController; |
| 17 using sessions::SyncSession; | 17 using sessions::SyncSession; |
| 18 using std::string; | 18 using std::string; |
| 19 using syncable::FIRST_REAL_MODEL_TYPE; | 19 using syncable::FIRST_REAL_MODEL_TYPE; |
| 20 using syncable::MODEL_TYPE_COUNT; | 20 using syncable::MODEL_TYPE_COUNT; |
| 21 | 21 |
| 22 | 22 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 SyncEngineEvent event(SyncEngineEvent::CLEAR_SERVER_DATA_SUCCEEDED); | 68 SyncEngineEvent event(SyncEngineEvent::CLEAR_SERVER_DATA_SUCCEEDED); |
| 69 session->context()->NotifyListeners(event); | 69 session->context()->NotifyListeners(event); |
| 70 | 70 |
| 71 session->delegate()->OnShouldStopSyncingPermanently(); | 71 session->delegate()->OnShouldStopSyncingPermanently(); |
| 72 | 72 |
| 73 DVLOG(1) << "ClearData succeeded."; | 73 DVLOG(1) << "ClearData succeeded."; |
| 74 return SYNCER_OK; | 74 return SYNCER_OK; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace browser_sync | 77 } // namespace browser_sync |
| OLD | NEW |