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

Unified Diff: chrome/browser/sync/profile_sync_service_startup_unittest.cc

Issue 686563003: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service_startup_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_startup_unittest.cc b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
index ad4410123eef5d3d77a7bb388ebc6279560818cb..0319e48394dc0128a43f9b6b2857dee5bf2fc0d8 100644
--- a/chrome/browser/sync/profile_sync_service_startup_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
@@ -87,10 +87,9 @@ class ProfileSyncServiceStartupTest : public testing::Test {
profile_manager_(TestingBrowserProcess::GetGlobal()),
sync_(NULL) {}
- virtual ~ProfileSyncServiceStartupTest() {
- }
+ ~ProfileSyncServiceStartupTest() override {}
- virtual void SetUp() {
+ void SetUp() override {
CHECK(profile_manager_.SetUp());
TestingProfile::TestingFactories testing_facotries;
@@ -110,9 +109,7 @@ class ProfileSyncServiceStartupTest : public testing::Test {
testing_facotries);
}
- virtual void TearDown() {
- sync_->RemoveObserver(&observer_);
- }
+ void TearDown() override { sync_->RemoveObserver(&observer_); }
static KeyedService* BuildService(content::BrowserContext* browser_context) {
Profile* profile = static_cast<Profile*>(browser_context);
@@ -196,7 +193,7 @@ class ProfileSyncServiceStartupTest : public testing::Test {
class ProfileSyncServiceStartupCrosTest : public ProfileSyncServiceStartupTest {
public:
- virtual void SetUp() {
+ void SetUp() override {
ProfileSyncServiceStartupTest::SetUp();
sync_ = static_cast<ProfileSyncService*>(
ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(

Powered by Google App Engine
This is Rietveld 408576698