summaryrefslogtreecommitdiffstats
path: root/components/renderer_context_menu
diff options
context:
space:
mode:
authordeepak.m1 <deepak.m1@samsung.com>2015-02-19 20:36:24 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-20 04:36:48 +0000
commitb3a4e8f7ba5c82f8b36c7dfd28f6545605abfa69 (patch)
treeee9c791fa12c2129cd0674f47eaf1e58d206b6b6 /components/renderer_context_menu
parent5bd5a10b9f4d1b7b3395653861c1d6ba2c87898b (diff)
downloadchromium_src-b3a4e8f7ba5c82f8b36c7dfd28f6545605abfa69.zip
chromium_src-b3a4e8f7ba5c82f8b36c7dfd28f6545605abfa69.tar.gz
chromium_src-b3a4e8f7ba5c82f8b36c7dfd28f6545605abfa69.tar.bz2
Renaming a variable and add comments to clarify its usage.
BUG=459890 Review URL: https://codereview.chromium.org/941603002 Cr-Commit-Position: refs/heads/master@{#317243}
Diffstat (limited to 'components/renderer_context_menu')
-rw-r--r--components/renderer_context_menu/render_view_context_menu_base.cc2
-rw-r--r--components/renderer_context_menu/render_view_context_menu_base.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/components/renderer_context_menu/render_view_context_menu_base.cc b/components/renderer_context_menu/render_view_context_menu_base.cc
index 3cdf8a3..d6472df 100644
--- a/components/renderer_context_menu/render_view_context_menu_base.cc
+++ b/components/renderer_context_menu/render_view_context_menu_base.cc
@@ -169,7 +169,7 @@ RenderViewContextMenuBase::RenderViewContextMenuBase(
const content::ContextMenuParams& params)
: params_(params),
source_web_contents_(WebContents::FromRenderFrameHost(render_frame_host)),
- embedded_web_contents_(GetWebContentsToUse(source_web_contents_)),
+ embedder_web_contents_(GetWebContentsToUse(source_web_contents_)),
browser_context_(source_web_contents_->GetBrowserContext()),
menu_model_(this),
render_frame_id_(render_frame_host->GetRoutingID()),
diff --git a/components/renderer_context_menu/render_view_context_menu_base.h b/components/renderer_context_menu/render_view_context_menu_base.h
index fbfbe5b..d6d7bbd 100644
--- a/components/renderer_context_menu/render_view_context_menu_base.h
+++ b/components/renderer_context_menu/render_view_context_menu_base.h
@@ -163,7 +163,10 @@ class RenderViewContextMenuBase : public ui::SimpleMenuModel::Delegate,
content::ContextMenuParams params_;
content::WebContents* source_web_contents_;
- content::WebContents* embedded_web_contents_;
+ // In the case of a MimeHandlerView this will point to the WebContents that
+ // embeds the MimeHandlerViewGuest. Otherwise this will be the same as
+ // source_web_contents_.
+ content::WebContents* embedder_web_contents_;
content::BrowserContext* browser_context_;
ui::SimpleMenuModel menu_model_;