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_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/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/common/chrome_notification_types.h" | 24 #include "chrome/common/chrome_notification_types.h" |
25 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
26 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
28 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
29 #include "content/public/common/context_menu_params.h" | 29 #include "content/public/common/context_menu_params.h" |
30 #include "ui/base/text/text_elider.h" | 30 #include "ui/base/text/text_elider.h" |
31 #include "ui/gfx/favicon_size.h" | 31 #include "ui/gfx/favicon_size.h" |
32 | 32 |
33 using content::WebContents; | 33 using content::WebContents; |
| 34 using extensions::ExtensionSystem; |
34 | 35 |
35 namespace { | 36 namespace { |
36 | 37 |
37 // Keys for serialization to and from Value to store in the preferences. | 38 // Keys for serialization to and from Value to store in the preferences. |
38 const char kContextMenusKey[] = "context_menus"; | 39 const char kContextMenusKey[] = "context_menus"; |
39 | 40 |
40 const char kCheckedKey[] = "checked"; | 41 const char kCheckedKey[] = "checked"; |
41 const char kContextsKey[] = "contexts"; | 42 const char kContextsKey[] = "contexts"; |
42 const char kDocumentURLPatternsKey[] = "document_url_patterns"; | 43 const char kDocumentURLPatternsKey[] = "document_url_patterns"; |
43 const char kEnabledKey[] = "enabled"; | 44 const char kEnabledKey[] = "enabled"; |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 return true; | 825 return true; |
825 if (extension_id == other.extension_id) { | 826 if (extension_id == other.extension_id) { |
826 if (uid < other.uid) | 827 if (uid < other.uid) |
827 return true; | 828 return true; |
828 if (uid == other.uid) | 829 if (uid == other.uid) |
829 return string_uid < other.string_uid; | 830 return string_uid < other.string_uid; |
830 } | 831 } |
831 } | 832 } |
832 return false; | 833 return false; |
833 } | 834 } |
OLD | NEW |