| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/browsing_data/core/counters/history_counter.h" | 5 #include "components/browsing_data/core/counters/history_counter.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "chrome/browser/history/history_service_factory.h" | 10 #include "chrome/browser/history/history_service_factory.h" |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 sync_blocker.reset(); | 447 sync_blocker.reset(); |
| 448 WaitForCountingOrConfirmFinished(); | 448 WaitForCountingOrConfirmFinished(); |
| 449 | 449 |
| 450 // Changing the syncing datatypes to another set that still includes history | 450 // Changing the syncing datatypes to another set that still includes history |
| 451 // deletion should technically not trigger a restart, because the state of | 451 // deletion should technically not trigger a restart, because the state of |
| 452 // history deletion did not change. However, in reality we can get two | 452 // history deletion did not change. However, in reality we can get two |
| 453 // notifications, one that history sync has stopped and another that it is | 453 // notifications, one that history sync has stopped and another that it is |
| 454 // active again. | 454 // active again. |
| 455 | 455 |
| 456 // Stopping the Sync service triggers a restart. | 456 // Stopping the Sync service triggers a restart. |
| 457 sync_service->RequestStop(sync_driver::SyncService::CLEAR_DATA); | 457 sync_service->RequestStop(syncer::SyncService::CLEAR_DATA); |
| 458 WaitForCountingOrConfirmFinished(); | 458 WaitForCountingOrConfirmFinished(); |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace | 461 } // namespace |
| OLD | NEW |