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

Side by Side Diff: chrome/browser/extensions/extension_warning_badge_service.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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 (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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "extensions/browser/warning_service.h" 10 #include "extensions/browser/warning_service.h"
(...skipping 16 matching lines...) Expand all
27 // Black lists all currently active extension warnings, so that they do not 27 // Black lists all currently active extension warnings, so that they do not
28 // trigger a warning badge again for the life-time of the browsing session. 28 // trigger a warning badge again for the life-time of the browsing session.
29 void SuppressCurrentWarnings(); 29 void SuppressCurrentWarnings();
30 30
31 protected: 31 protected:
32 // Virtual for testing. 32 // Virtual for testing.
33 virtual const std::set<Warning>& GetCurrentWarnings() const; 33 virtual const std::set<Warning>& GetCurrentWarnings() const;
34 34
35 private: 35 private:
36 // Implementation of WarningService::Observer. 36 // Implementation of WarningService::Observer.
37 virtual void ExtensionWarningsChanged() OVERRIDE; 37 virtual void ExtensionWarningsChanged() override;
38 38
39 void UpdateBadgeStatus(); 39 void UpdateBadgeStatus();
40 virtual void ShowBadge(bool show); 40 virtual void ShowBadge(bool show);
41 41
42 Profile* profile_; 42 Profile* profile_;
43 43
44 // Warnings that do not trigger a badge on the wrench menu. 44 // Warnings that do not trigger a badge on the wrench menu.
45 WarningSet suppressed_warnings_; 45 WarningSet suppressed_warnings_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(ExtensionWarningBadgeService); 47 DISALLOW_COPY_AND_ASSIGN(ExtensionWarningBadgeService);
48 }; 48 };
49 49
50 } // namespace extensions 50 } // namespace extensions
51 51
52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_view_host.cc ('k') | chrome/browser/extensions/extension_warning_badge_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698