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

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

Issue 9433044: Fix extensions compile issues for Android on sync_unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tracked issue for default_height in a bug and put bug # here. Created 8 years, 10 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 | Annotate | Revision Log
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_SET_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static void NotifyWarningsOnUI(void* profile_id, 71 static void NotifyWarningsOnUI(void* profile_id,
72 std::set<std::string> extension_ids, 72 std::set<std::string> extension_ids,
73 WarningType warning_type); 73 WarningType warning_type);
74 74
75 protected: 75 protected:
76 // Virtual for testing. 76 // Virtual for testing.
77 virtual void NotifyWarningsChanged(); 77 virtual void NotifyWarningsChanged();
78 78
79 private: 79 private:
80 typedef std::set<ExtensionWarning>::const_iterator const_iterator; 80 typedef std::set<ExtensionWarning>::const_iterator const_iterator;
81 typedef std::set<ExtensionWarning>::iterator iterator;
81 82
82 // Shows or hides the warning badge on the wrench menu depending on whether 83 // Shows or hides the warning badge on the wrench menu depending on whether
83 // any non-suppressed warnings exist. 84 // any non-suppressed warnings exist.
84 void UpdateWarningBadge(); 85 void UpdateWarningBadge();
85 86
86 // Currently existing warnings. 87 // Currently existing warnings.
87 std::set<ExtensionWarning> warnings_; 88 std::set<ExtensionWarning> warnings_;
88 89
89 // Warnings that do not trigger a badge on the wrench menu. 90 // Warnings that do not trigger a badge on the wrench menu.
90 std::set<ExtensionWarning> badge_suppressions_; 91 std::set<ExtensionWarning> badge_suppressions_;
91 92
92 Profile* profile_; 93 Profile* profile_;
93 }; 94 };
94 95
95 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_ 96 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698