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

Side by Side Diff: chrome/browser/ui/views/session_crashed_bubble_view.cc

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/session_crashed_bubble_view.h" 5 #include "chrome/browser/ui/views/session_crashed_bubble_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 explicit BrowserRemovalObserver(Browser* browser) : browser_(browser) { 102 explicit BrowserRemovalObserver(Browser* browser) : browser_(browser) {
103 DCHECK(browser_); 103 DCHECK(browser_);
104 BrowserList::AddObserver(this); 104 BrowserList::AddObserver(this);
105 } 105 }
106 106
107 virtual ~BrowserRemovalObserver() { 107 virtual ~BrowserRemovalObserver() {
108 BrowserList::RemoveObserver(this); 108 BrowserList::RemoveObserver(this);
109 } 109 }
110 110
111 // Overridden from chrome::BrowserListObserver. 111 // Overridden from chrome::BrowserListObserver.
112 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE { 112 virtual void OnBrowserRemoved(Browser* browser) override {
113 if (browser == browser_) 113 if (browser == browser_)
114 browser_ = NULL; 114 browser_ = NULL;
115 } 115 }
116 116
117 Browser* browser() const { return browser_; } 117 Browser* browser() const { return browser_; }
118 118
119 private: 119 private:
120 Browser* browser_; 120 Browser* browser_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(BrowserRemovalObserver); 122 DISALLOW_COPY_AND_ASSIGN(BrowserRemovalObserver);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 GetWidget()->Close(); 433 GetWidget()->Close();
434 } 434 }
435 435
436 bool ShowSessionCrashedBubble(Browser* browser) { 436 bool ShowSessionCrashedBubble(Browser* browser) {
437 if (IsBubbleUIEnabled()) { 437 if (IsBubbleUIEnabled()) {
438 SessionCrashedBubbleView::Show(browser); 438 SessionCrashedBubbleView::Show(browser);
439 return true; 439 return true;
440 } 440 }
441 return false; 441 return false;
442 } 442 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698