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

Unified Diff: chrome/browser/sync/sessions/session_data_type_controller_unittest.cc

Issue 666733003: Standardize usage of virtual/override/final in chrome/browser/sync/ (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/sessions/session_data_type_controller_unittest.cc
diff --git a/chrome/browser/sync/sessions/session_data_type_controller_unittest.cc b/chrome/browser/sync/sessions/session_data_type_controller_unittest.cc
index 18fe26abfcc335905f92f9f1d65be2b58a7ad362..3671a7c46554204ea7b17acc419bef53fb447626 100644
--- a/chrome/browser/sync/sessions/session_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/sessions/session_data_type_controller_unittest.cc
@@ -28,22 +28,22 @@ class MockSyncedWindowDelegate : public SyncedWindowDelegate {
explicit MockSyncedWindowDelegate(Profile* profile)
: is_restore_in_progress_(false),
profile_(profile) {}
- virtual ~MockSyncedWindowDelegate() {}
-
- virtual bool HasWindow() const override { return false; }
- virtual SessionID::id_type GetSessionId() const override { return 0; }
- virtual int GetTabCount() const override { return 0; }
- virtual int GetActiveIndex() const override { return 0; }
- virtual bool IsApp() const override { return false; }
- virtual bool IsTypeTabbed() const override { return false; }
- virtual bool IsTypePopup() const override { return false; }
- virtual bool IsTabPinned(const SyncedTabDelegate* tab) const override {
+ ~MockSyncedWindowDelegate() override {}
+
+ bool HasWindow() const override { return false; }
+ SessionID::id_type GetSessionId() const override { return 0; }
+ int GetTabCount() const override { return 0; }
+ int GetActiveIndex() const override { return 0; }
+ bool IsApp() const override { return false; }
+ bool IsTypeTabbed() const override { return false; }
+ bool IsTypePopup() const override { return false; }
+ bool IsTabPinned(const SyncedTabDelegate* tab) const override {
return false;
}
- virtual SyncedTabDelegate* GetTabAt(int index) const override { return NULL; }
- virtual SessionID::id_type GetTabIdAt(int index) const override { return 0; }
+ SyncedTabDelegate* GetTabAt(int index) const override { return NULL; }
+ SessionID::id_type GetTabIdAt(int index) const override { return 0; }
- virtual bool IsSessionRestoreInProgress() const override {
+ bool IsSessionRestoreInProgress() const override {
return is_restore_in_progress_;
}
@@ -65,8 +65,7 @@ class MockSyncedWindowDelegate : public SyncedWindowDelegate {
class MockSyncedWindowDelegatesGetter : public SyncedWindowDelegatesGetter {
public:
- virtual const std::set<SyncedWindowDelegate*>
- GetSyncedWindowDelegates() override {
+ const std::set<SyncedWindowDelegate*> GetSyncedWindowDelegates() override {
return delegates_;
}
« no previous file with comments | « chrome/browser/sync/sessions/session_data_type_controller.h ('k') | chrome/browser/sync/sessions/sessions_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698