Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Side by Side Diff: components/renderer_context_menu/render_view_context_menu_base.cc

Issue 535773002: Android: Remove more browser extensions code, including some that snuck back in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/renderer_context_menu/context_menu_content_type.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "components/renderer_context_menu/render_view_context_menu_base.h" 5 #include "components/renderer_context_menu/render_view_context_menu_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "content/public/browser/render_frame_host.h" 12 #include "content/public/browser/render_frame_host.h"
13 #include "content/public/browser/render_process_host.h" 13 #include "content/public/browser/render_process_host.h"
14 #include "content/public/browser/render_view_host.h" 14 #include "content/public/browser/render_view_host.h"
15 #include "content/public/browser/render_widget_host_view.h" 15 #include "content/public/browser/render_widget_host_view.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "content/public/common/menu_item.h" 17 #include "content/public/common/menu_item.h"
18 #include "extensions/browser/extension_host.h"
19 #include "extensions/browser/extension_system.h"
20 #include "extensions/browser/view_type_utils.h"
21 #include "extensions/common/extension.h"
22 #include "third_party/WebKit/public/web/WebContextMenuData.h" 18 #include "third_party/WebKit/public/web/WebContextMenuData.h"
23 19
24 using blink::WebContextMenuData; 20 using blink::WebContextMenuData;
25 using blink::WebString; 21 using blink::WebString;
26 using blink::WebURL; 22 using blink::WebURL;
27 using content::BrowserContext; 23 using content::BrowserContext;
28 using content::OpenURLParams; 24 using content::OpenURLParams;
29 using content::RenderFrameHost; 25 using content::RenderFrameHost;
30 using content::RenderViewHost; 26 using content::RenderViewHost;
31 using content::WebContents; 27 using content::WebContents;
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 380 }
385 381
386 bool RenderViewContextMenuBase::IsCustomItemChecked(int id) const { 382 bool RenderViewContextMenuBase::IsCustomItemChecked(int id) const {
387 return IsCustomItemCheckedInternal(params_.custom_items, id); 383 return IsCustomItemCheckedInternal(params_.custom_items, id);
388 } 384 }
389 385
390 bool RenderViewContextMenuBase::IsCustomItemEnabled(int id) const { 386 bool RenderViewContextMenuBase::IsCustomItemEnabled(int id) const {
391 return IsCustomItemEnabledInternal(params_.custom_items, id); 387 return IsCustomItemEnabledInternal(params_.custom_items, id);
392 } 388 }
393 389
OLDNEW
« no previous file with comments | « components/renderer_context_menu/context_menu_content_type.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698