| Index: chrome/browser/tab_contents/render_view_context_menu.cc
|
| diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| index 1cff6df1aeec448330f4d791cb3e9a28d9f456ef..d4c8b15fb41833fc5d051d86a3bb6231eb394258 100644
|
| --- a/chrome/browser/tab_contents/render_view_context_menu.cc
|
| +++ b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| @@ -501,7 +501,11 @@ const Extension* RenderViewContextMenu::GetExtension() const {
|
|
|
| void RenderViewContextMenu::AppendPlatformAppItems() {
|
| const Extension* platform_app = GetExtension();
|
| - DCHECK(platform_app);
|
| +
|
| + // The RVH might be for a process sandboxed from the extension.
|
| + if (!platform_app)
|
| + return;
|
| +
|
| DCHECK(platform_app->is_platform_app());
|
|
|
| bool has_selection = !params_.selection_text.empty();
|
|
|