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

Side by Side Diff: chrome/browser/ui/network_profile_bubble.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/network_profile_bubble.h" 5 #include "chrome/browser/ui/network_profile_bubble.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <wtsapi32.h> 9 #include <wtsapi32.h>
10 // Make sure we link the wtsapi lib file in. 10 // Make sure we link the wtsapi lib file in.
(...skipping 23 matching lines...) Expand all
34 const int kSilenceDurationDays = 100; 34 const int kSilenceDurationDays = 100;
35 35
36 // The number of warnings to be shown on consequtive starts of Chrome before the 36 // The number of warnings to be shown on consequtive starts of Chrome before the
37 // silent period starts. 37 // silent period starts.
38 const int kMaxWarnings = 2; 38 const int kMaxWarnings = 2;
39 39
40 // Implementation of chrome::BrowserListObserver used to wait for a browser 40 // Implementation of chrome::BrowserListObserver used to wait for a browser
41 // window. 41 // window.
42 class BrowserListObserver : public chrome::BrowserListObserver { 42 class BrowserListObserver : public chrome::BrowserListObserver {
43 private: 43 private:
44 virtual ~BrowserListObserver(); 44 ~BrowserListObserver() override;
45 45
46 // Overridden from chrome::BrowserListObserver: 46 // Overridden from chrome::BrowserListObserver:
47 virtual void OnBrowserAdded(Browser* browser) override; 47 void OnBrowserAdded(Browser* browser) override;
48 virtual void OnBrowserRemoved(Browser* browser) override; 48 void OnBrowserRemoved(Browser* browser) override;
49 virtual void OnBrowserSetLastActive(Browser* browser) override; 49 void OnBrowserSetLastActive(Browser* browser) override;
50 }; 50 };
51 51
52 BrowserListObserver::~BrowserListObserver() { 52 BrowserListObserver::~BrowserListObserver() {
53 } 53 }
54 54
55 void BrowserListObserver::OnBrowserAdded(Browser* browser) { 55 void BrowserListObserver::OnBrowserAdded(Browser* browser) {
56 } 56 }
57 57
58 void BrowserListObserver::OnBrowserRemoved(Browser* browser) { 58 void BrowserListObserver::OnBrowserRemoved(Browser* browser) {
59 } 59 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // static 179 // static
180 void NetworkProfileBubble::NotifyNetworkProfileDetected() { 180 void NetworkProfileBubble::NotifyNetworkProfileDetected() {
181 Browser* browser = chrome::FindLastActiveWithHostDesktopType( 181 Browser* browser = chrome::FindLastActiveWithHostDesktopType(
182 chrome::GetActiveDesktop()); 182 chrome::GetActiveDesktop());
183 183
184 if (browser) 184 if (browser)
185 ShowNotification(browser); 185 ShowNotification(browser);
186 else 186 else
187 BrowserList::AddObserver(new BrowserListObserver()); 187 BrowserList::AddObserver(new BrowserListObserver());
188 } 188 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/metro_pin_tab_helper_win.h ('k') | chrome/browser/ui/passwords/password_manager_presenter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698