OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_menu_manager.h" | 5 #include "chrome/browser/extensions/extension_menu_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "chrome/browser/extensions/extension_event_router.h" | 15 #include "chrome/browser/extensions/extension_event_router.h" |
16 #include "chrome/browser/extensions/extension_tabs_module.h" | 16 #include "chrome/browser/extensions/extension_tabs_module.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/notification_service.h" | 19 #include "chrome/common/notification_service.h" |
20 #include "gfx/favicon_size.h" | |
21 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/gfx/favicon_size.h" |
22 #include "webkit/glue/context_menu.h" | 22 #include "webkit/glue/context_menu.h" |
23 | 23 |
24 ExtensionMenuItem::ExtensionMenuItem(const Id& id, | 24 ExtensionMenuItem::ExtensionMenuItem(const Id& id, |
25 std::string title, | 25 std::string title, |
26 bool checked, | 26 bool checked, |
27 Type type, | 27 Type type, |
28 const ContextList& contexts) | 28 const ContextList& contexts) |
29 : id_(id), | 29 : id_(id), |
30 title_(title), | 30 title_(title), |
31 type_(type), | 31 type_(type), |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 if (profile < other.profile) | 496 if (profile < other.profile) |
497 return true; | 497 return true; |
498 if (profile == other.profile) { | 498 if (profile == other.profile) { |
499 if (extension_id < other.extension_id) | 499 if (extension_id < other.extension_id) |
500 return true; | 500 return true; |
501 if (extension_id == other.extension_id) | 501 if (extension_id == other.extension_id) |
502 return uid < other.uid; | 502 return uid < other.uid; |
503 } | 503 } |
504 return false; | 504 return false; |
505 } | 505 } |
OLD | NEW |