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

Unified Diff: chrome/browser/profiles/profile_destroyer_unittest.cc

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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/profiles/profile_destroyer_unittest.cc
diff --git a/chrome/browser/profiles/profile_destroyer_unittest.cc b/chrome/browser/profiles/profile_destroyer_unittest.cc
index d40104177775d03531e580ac7e449fefbd83e457..8ffcab227247152cfdb3d0a0e0800fbd58d46f1a 100644
--- a/chrome/browser/profiles/profile_destroyer_unittest.cc
+++ b/chrome/browser/profiles/profile_destroyer_unittest.cc
@@ -21,7 +21,7 @@ class TestingOffTheRecordDestructionProfile : public TestingProfile {
destroyed_otr_profile_(false) {
set_incognito(true);
}
- virtual void DestroyOffTheRecordProfile() override {
+ void DestroyOffTheRecordProfile() override {
destroyed_otr_profile_ = true;
}
bool destroyed_otr_profile_;
@@ -35,11 +35,11 @@ class TestingOriginalDestructionProfile : public TestingProfile {
DCHECK_EQ(kNull, living_instance_);
living_instance_ = this;
}
- virtual ~TestingOriginalDestructionProfile() {
+ ~TestingOriginalDestructionProfile() override {
DCHECK_EQ(this, living_instance_);
living_instance_ = NULL;
}
- virtual void DestroyOffTheRecordProfile() override {
+ void DestroyOffTheRecordProfile() override {
SetOffTheRecordProfile(NULL);
destroyed_otr_profile_ = true;
}
@@ -62,7 +62,7 @@ class ProfileDestroyerTest : public BrowserWithTestWindowTest {
ProfileDestroyerTest() : off_the_record_profile_(NULL) {}
protected:
- virtual TestingProfile* CreateProfile() override {
+ TestingProfile* CreateProfile() override {
if (off_the_record_profile_ == NULL)
off_the_record_profile_ = new TestingOffTheRecordDestructionProfile();
return off_the_record_profile_;
« no previous file with comments | « chrome/browser/profile_resetter/jtl_interpreter.cc ('k') | chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698