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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc

Issue 826743003: Update {virtual,override,final} to follow C++11 style chrome/browser/chromeos/net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/chromeos/net/network_portal_detector_impl_browsertest.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc b/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
index b34cf1ee7c1170726bd7f79d5a03c90d46c75115..491b80a1b54eeccc3ef70977681f31af33c22c58 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
@@ -61,25 +61,22 @@ class TestObserver : public MessageCenterObserver {
MessageCenter::Get()->AddObserver(this);
}
- virtual ~TestObserver() {
- MessageCenter::Get()->RemoveObserver(this);
- }
+ ~TestObserver() override { MessageCenter::Get()->RemoveObserver(this); }
void WaitAndReset() {
run_loop_->Run();
run_loop_.reset(new base::RunLoop());
}
- virtual void OnNotificationDisplayed(
+ void OnNotificationDisplayed(
const std::string& notification_id,
- const message_center::DisplaySource source)
- override {
+ const message_center::DisplaySource source) override {
if (notification_id == kNotificationId)
MessageLoop::current()->PostTask(FROM_HERE, run_loop_->QuitClosure());
}
- virtual void OnNotificationRemoved(const std::string& notification_id,
- bool by_user) override {
+ void OnNotificationRemoved(const std::string& notification_id,
+ bool by_user) override {
if (notification_id == kNotificationId && by_user)
MessageLoop::current()->PostTask(FROM_HERE, run_loop_->QuitClosure());
}
@@ -98,9 +95,9 @@ class NetworkPortalDetectorImplBrowserTest
public:
NetworkPortalDetectorImplBrowserTest()
: LoginManagerTest(false), network_portal_detector_(NULL) {}
- virtual ~NetworkPortalDetectorImplBrowserTest() {}
+ ~NetworkPortalDetectorImplBrowserTest() override {}
- virtual void SetUpOnMainThread() override {
+ void SetUpOnMainThread() override {
LoginManagerTest::SetUpOnMainThread();
ShillServiceClient::TestInterface* service_test =

Powered by Google App Engine
This is Rietveld 408576698