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

Unified Diff: components/renderer_context_menu/context_menu_content_type.h

Issue 1117893002: Moving extension code out of "components/" to avoid layering violations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/renderer_context_menu/context_menu_content_type.h
diff --git a/components/renderer_context_menu/context_menu_content_type.h b/components/renderer_context_menu/context_menu_content_type.h
index c1e6a74f375c9ccdd7a5a7c914c29607a0e905b9..e7143f470284e73216dabf8a0ea51db3d9aba8ab 100644
--- a/components/renderer_context_menu/context_menu_content_type.h
+++ b/components/renderer_context_menu/context_menu_content_type.h
@@ -13,10 +13,6 @@ namespace content {
class WebContents;
}
-namespace extensions {
-class Extension;
-}
-
// ContextMenuContentType is a helper to decide which category/group of items
// are relevant for a given WebContents and a context.
//
@@ -68,9 +64,8 @@ class ContextMenuContentType {
protected:
const content::ContextMenuParams& params() const { return params_; }
- const extensions::Extension* GetExtension() const;
-
- const content::WebContents* source_web_contents() const {
+ // TODO(lazyboy): Return const content::WebContents*.
+ content::WebContents* source_web_contents() const {
return source_web_contents_;
}
« no previous file with comments | « components/renderer_context_menu/DEPS ('k') | components/renderer_context_menu/context_menu_content_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698