| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer_context_menu/context_menu_content_type_platfor
m_app.h" | 5 #include "chrome/browser/renderer_context_menu/context_menu_content_type_platfor
m_app.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "extensions/common/extension.h" | 9 #include "extensions/common/extension.h" |
| 10 #include "extensions/common/manifest.h" | 10 #include "extensions/common/manifest.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Add undo/redo, cut/copy/paste etc for text fields. | 31 // Add undo/redo, cut/copy/paste etc for text fields. |
| 32 case ITEM_GROUP_EDITABLE: | 32 case ITEM_GROUP_EDITABLE: |
| 33 case ITEM_GROUP_COPY: | 33 case ITEM_GROUP_COPY: |
| 34 return ContextMenuContentType::SupportsGroup(group); | 34 return ContextMenuContentType::SupportsGroup(group); |
| 35 case ITEM_GROUP_CURRENT_EXTENSION: | 35 case ITEM_GROUP_CURRENT_EXTENSION: |
| 36 return true; | 36 return true; |
| 37 case ITEM_GROUP_DEVTOOLS_UNPACKED_EXT: | 37 case ITEM_GROUP_DEVTOOLS_UNPACKED_EXT: |
| 38 // Add dev tools for unpacked extensions. | 38 // Add dev tools for unpacked extensions. |
| 39 return extensions::Manifest::IsUnpackedLocation( | 39 return extensions::Manifest::IsUnpackedLocation( |
| 40 platform_app->location()) || | 40 platform_app->location()) || |
| 41 CommandLine::ForCurrentProcess()->HasSwitch( | 41 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 42 switches::kDebugPackedApps); | 42 switches::kDebugPackedApps); |
| 43 default: | 43 default: |
| 44 return false; | 44 return false; |
| 45 } | 45 } |
| 46 } | 46 } |
| OLD | NEW |