Index: chrome/browser/automation/testing_automation_provider_views.cc |
diff --git a/chrome/browser/automation/testing_automation_provider_views.cc b/chrome/browser/automation/testing_automation_provider_views.cc |
index fd685b21e96170efed4323a141d10ef2e517b086..797f5ca44ae27b01bc38aebfbebf884fde3458e2 100644 |
--- a/chrome/browser/automation/testing_automation_provider_views.cc |
+++ b/chrome/browser/automation/testing_automation_provider_views.cc |
@@ -37,7 +37,7 @@ class ViewFocusChangeWaiter : public views::FocusChangeListener { |
FocusWillChange(NULL, focus_manager_->GetFocusedView()); |
} |
- ~ViewFocusChangeWaiter() { |
+ virtual ~ViewFocusChangeWaiter() { |
focus_manager_->RemoveFocusChangeListener(this); |
} |
@@ -87,6 +87,8 @@ class TestingAutomationProvider::PopupMenuWaiter : public views::MenuListener { |
toolbar_view_->AddMenuListener(this); |
} |
+ virtual ~PopupMenuWaiter() {} |
+ |
// Implementation of views::MenuListener |
virtual void OnMenuOpened() { |
toolbar_view_->RemoveMenuListener(this); |