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

Unified Diff: chrome/browser/sync_file_system/local/syncable_file_system_operation.cc

Issue 666143002: Standardize usage of virtual/override/final in chrome/browser/sync_file_system/ (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_file_system/local/syncable_file_system_operation.cc
diff --git a/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc b/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc
index 91989124b284a8e9df3e2668dbab0573fae30b38..5a2e7b57738acee0c764a8fa21531ec447fade3f 100644
--- a/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc
+++ b/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc
@@ -40,11 +40,9 @@ class SyncableFileSystemOperation::QueueableTask
task_(task),
target_paths_(operation->target_paths_) {}
- virtual ~QueueableTask() {
- DCHECK(!operation_);
- }
+ ~QueueableTask() override { DCHECK(!operation_); }
- virtual void Run() override {
+ void Run() override {
if (!operation_)
return;
DCHECK(!task_.is_null());
@@ -52,7 +50,7 @@ class SyncableFileSystemOperation::QueueableTask
operation_.reset();
}
- virtual void Cancel() override {
+ void Cancel() override {
DCHECK(!task_.is_null());
if (operation_)
operation_->OnCancelled();
@@ -60,7 +58,7 @@ class SyncableFileSystemOperation::QueueableTask
operation_.reset();
}
- virtual const std::vector<FileSystemURL>& target_paths() const override {
+ const std::vector<FileSystemURL>& target_paths() const override {
return target_paths_;
}

Powered by Google App Engine
This is Rietveld 408576698