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/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 11 #include "chrome/grit/chromium_strings.h" |
| 12 #include "chrome/grit/generated_resources.h" |
11 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
12 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
13 #include "extensions/common/extension_set.h" | 15 #include "extensions/common/extension_set.h" |
14 #include "grit/chromium_strings.h" | |
15 #include "grit/generated_resources.h" | |
16 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace { | 21 namespace { |
22 // Prefix for message parameters indicating that the parameter needs to | 22 // Prefix for message parameters indicating that the parameter needs to |
23 // be translated from an extension id to the extension name. | 23 // be translated from an extension id to the extension name. |
24 const char kTranslate[] = "TO_TRANSLATE:"; | 24 const char kTranslate[] = "TO_TRANSLATE:"; |
25 const size_t kMaxNumberOfParameters = 4; | 25 const size_t kMaxNumberOfParameters = 4; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 228 } |
229 } | 229 } |
230 | 230 |
231 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b) { | 231 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b) { |
232 if (a.extension_id() != b.extension_id()) | 232 if (a.extension_id() != b.extension_id()) |
233 return a.extension_id() < b.extension_id(); | 233 return a.extension_id() < b.extension_id(); |
234 return a.warning_type() < b.warning_type(); | 234 return a.warning_type() < b.warning_type(); |
235 } | 235 } |
236 | 236 |
237 } // namespace extensions | 237 } // namespace extensions |
OLD | NEW |