| Index: chrome/browser/renderer_context_menu/render_view_context_menu.h
|
| diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.h b/chrome/browser/renderer_context_menu/render_view_context_menu.h
|
| index 731dde5ca0e1b185ca73610dc26286fcd9dbcb90..302cf17462d24c97103eefdc74579887760684e4 100644
|
| --- a/chrome/browser/renderer_context_menu/render_view_context_menu.h
|
| +++ b/chrome/browser/renderer_context_menu/render_view_context_menu.h
|
| @@ -20,12 +20,13 @@
|
| #include "components/renderer_context_menu/render_view_context_menu_observer.h"
|
| #include "components/renderer_context_menu/render_view_context_menu_proxy.h"
|
| #include "content/public/common/context_menu_params.h"
|
| +#include "extensions/features/features.h"
|
| #include "printing/features/features.h"
|
| #include "ui/base/models/simple_menu_model.h"
|
| #include "ui/base/window_open_disposition.h"
|
| #include "ui/gfx/geometry/vector2d.h"
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| #include "chrome/browser/extensions/context_menu_matcher.h"
|
| #include "chrome/browser/extensions/menu_manager.h"
|
| #endif
|
| @@ -89,7 +90,7 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
|
| // Helper function to escape "&" as "&&".
|
| void EscapeAmpersands(base::string16* text);
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| extensions::ContextMenuMatcher extension_items_;
|
| #endif
|
| void RecordUsedItem(int id) override;
|
| @@ -104,7 +105,7 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
|
|
|
| static bool IsDevToolsURL(const GURL& url);
|
| static bool IsInternalResourcesURL(const GURL& url);
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| static bool ExtensionContextAndPatternMatch(
|
| const content::ContextMenuParams& params,
|
| const extensions::MenuItem::ContextList& contexts,
|
| @@ -146,7 +147,7 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
|
| void AppendLanguageSettings();
|
| void AppendSpellingSuggestionItems();
|
| void AppendSearchProvider();
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| void AppendAllExtensionItems();
|
| void AppendCurrentExtensionItems();
|
| #endif
|
|
|