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 "chrome/browser/extensions/extension_warning_set.h" | 5 #include "chrome/browser/extensions/extension_warning_set.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/common/extensions/extension_set.h" | |
11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
12 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
| 12 #include "extensions/common/extension_set.h" |
13 #include "grit/chromium_strings.h" | 13 #include "grit/chromium_strings.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 | 19 |
20 namespace { | 20 namespace { |
21 // Prefix for message parameters indicating that the parameter needs to | 21 // Prefix for message parameters indicating that the parameter needs to |
22 // be translated from an extension id to the extension name. | 22 // be translated from an extension id to the extension name. |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 216 } |
217 } | 217 } |
218 | 218 |
219 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b) { | 219 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b) { |
220 if (a.extension_id() != b.extension_id()) | 220 if (a.extension_id() != b.extension_id()) |
221 return a.extension_id() < b.extension_id(); | 221 return a.extension_id() < b.extension_id(); |
222 return a.warning_type() < b.warning_type(); | 222 return a.warning_type() < b.warning_type(); |
223 } | 223 } |
224 | 224 |
225 } // namespace extensions | 225 } // namespace extensions |
OLD | NEW |