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

Unified Diff: chrome/browser/ui/android/tab_model/tab_model_list_unittest.cc

Issue 900733003: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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/ui/android/tab_model/tab_model_list_unittest.cc
diff --git a/chrome/browser/ui/android/tab_model/tab_model_list_unittest.cc b/chrome/browser/ui/android/tab_model/tab_model_list_unittest.cc
index 1fb6b4b0fe93cb7a1b86eeabe3b0d029e9656341..5cc57f3adf25028d3537c5bbe48e580185fb04fb 100644
--- a/chrome/browser/ui/android/tab_model/tab_model_list_unittest.cc
+++ b/chrome/browser/ui/android/tab_model/tab_model_list_unittest.cc
@@ -17,21 +17,20 @@ class TestTabModel : public TabModel {
public:
explicit TestTabModel(Profile* profile) : TabModel(profile), tab_count_(0) {}
- virtual int GetTabCount() const override { return tab_count_; }
- virtual int GetActiveIndex() const override { return 0; }
- virtual content::WebContents* GetWebContentsAt(int index) const override {
+ int GetTabCount() const override { return tab_count_; }
+ int GetActiveIndex() const override { return 0; }
+ content::WebContents* GetWebContentsAt(int index) const override {
return nullptr;
}
- virtual void CreateTab(content::WebContents* web_contents,
- int parent_tab_id) override {}
- virtual content::WebContents* CreateNewTabForDevTools(
- const GURL& url) override {
+ void CreateTab(content::WebContents* web_contents,
+ int parent_tab_id) override {}
+ content::WebContents* CreateNewTabForDevTools(const GURL& url) override {
return nullptr;
}
- virtual bool IsSessionRestoreInProgress() const override { return false; }
- virtual TabAndroid* GetTabAt(int index) const override { return nullptr; }
- virtual void SetActiveIndex(int index) override {}
- virtual void CloseTabAt(int index) override {}
+ bool IsSessionRestoreInProgress() const override { return false; }
+ TabAndroid* GetTabAt(int index) const override { return nullptr; }
+ void SetActiveIndex(int index) override {}
+ void CloseTabAt(int index) override {}
// A fake value for the current number of tabs.
int tab_count_;
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model_jni_bridge.h ('k') | chrome/browser/ui/android/tab_model/tab_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698