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

Side by Side Diff: chrome/browser/browsing_data/history_counter_browsertest.cc

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | chrome/browser/chromeos/login/signin/auth_sync_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698