OLD | NEW |
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 "extensions/browser/warning_set.h" | 5 #include "extensions/browser/warning_set.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
8 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
11 #include "extensions/common/extension.h" | 13 #include "extensions/common/extension.h" |
12 #include "extensions/common/extension_set.h" | 14 #include "extensions/common/extension_set.h" |
13 #include "extensions/common/extensions_client.h" | 15 #include "extensions/common/extensions_client.h" |
14 #include "extensions/strings/grit/extensions_strings.h" | 16 #include "extensions/strings/grit/extensions_strings.h" |
15 #include "net/base/escape.h" | 17 #include "net/base/escape.h" |
16 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 } | 228 } |
227 } | 229 } |
228 | 230 |
229 bool operator<(const Warning& a, const Warning& b) { | 231 bool operator<(const Warning& a, const Warning& b) { |
230 if (a.extension_id() != b.extension_id()) | 232 if (a.extension_id() != b.extension_id()) |
231 return a.extension_id() < b.extension_id(); | 233 return a.extension_id() < b.extension_id(); |
232 return a.warning_type() < b.warning_type(); | 234 return a.warning_type() < b.warning_type(); |
233 } | 235 } |
234 | 236 |
235 } // namespace extensions | 237 } // namespace extensions |
OLD | NEW |