| 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 "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/stl_util-inl.h" | 11 #include "base/stl_util-inl.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
| 16 #include "chrome/browser/extensions/extension_event_router.h" | 16 #include "chrome/browser/extensions/extension_event_router.h" |
| 17 #include "chrome/browser/extensions/extension_tabs_module.h" | 17 #include "chrome/browser/extensions/extension_tabs_module.h" |
| 18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
| 20 #include "gfx/favicon_size.h" | 20 #include "gfx/favicon_size.h" |
| 21 #include "webkit/glue/context_menu.h" | 21 #include "webkit/glue/context_menu.h" |
| 22 | 22 |
| 23 ExtensionMenuItem::ExtensionMenuItem(const Id& id, | 23 ExtensionMenuItem::ExtensionMenuItem(const Id& id, |
| 24 std::string title, | 24 std::string title, |
| 25 bool checked, | 25 bool checked, |
| 26 Type type, | 26 Type type, |
| 27 const ContextList& contexts) | 27 const ContextList& contexts) |
| 28 : id_(id), | 28 : id_(id), |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 if (profile < other.profile) | 497 if (profile < other.profile) |
| 498 return true; | 498 return true; |
| 499 if (profile == other.profile) { | 499 if (profile == other.profile) { |
| 500 if (extension_id < other.extension_id) | 500 if (extension_id < other.extension_id) |
| 501 return true; | 501 return true; |
| 502 if (extension_id == other.extension_id) | 502 if (extension_id == other.extension_id) |
| 503 return uid < other.uid; | 503 return uid < other.uid; |
| 504 } | 504 } |
| 505 return false; | 505 return false; |
| 506 } | 506 } |
| OLD | NEW |