content::WebContents* other)
: content::WebContentsObserver(source),
other_(other) {}
- virtual ~TestWebContentsObserver() {}
+ ~TestWebContentsObserver() override {}
- virtual void WebContentsDestroyed() OVERRIDE {
+ void WebContentsDestroyed() override {
other_->NotifyNavigationStateChanged(static_cast<content::InvalidateTypes>(
content::INVALIDATE_TYPE_URL | content::INVALIDATE_TYPE_LOAD));
}
void clear_change_count() { change_count_ = 0; }
// BookmarkBarViewObserver:
- virtual void OnBookmarkBarVisibilityChanged() OVERRIDE {
- change_count_++;
- }
+ void OnBookmarkBarVisibilityChanged() override { change_count_++; }
private:
int change_count_;