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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 2383573002: [DO NOT COMMIT] Remove chrome::NOTIFICATION_RETARGETING
Patch Set: Rebase on ToT Created 4 years, 2 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
« no previous file with comments | « chrome/browser/extensions/api/web_navigation/web_navigation_api.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index a5297bf5eb9616d677baca558fe780c96f241bde..dd809a3fd54bd3e0170abf64c4721fb7db155d78 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -568,6 +568,7 @@ RenderViewContextMenu::RenderViewContextMenu(
ProtocolHandlerRegistryFactory::GetForBrowserContext(GetProfile())),
save_as_text_experiement_enabled_(false),
embedder_web_contents_(GetWebContentsToUse(source_web_contents_)) {
+ LOG(ERROR) << "ContextMenu: rfh:" << render_frame_host;
if (!g_custom_id_ranges_initialized) {
g_custom_id_ranges_initialized = true;
SetContentCustomCommandIdRange(IDC_CONTENT_CONTEXT_CUSTOM_FIRST,
@@ -1950,6 +1951,9 @@ void RenderViewContextMenu::NotifyMenuShown() {
void RenderViewContextMenu::NotifyURLOpened(
const GURL& url,
content::WebContents* new_contents) {
+ LOG(ERROR) << "RVCM::NotifyURLOpened: "
+ << " url:" << url << " new_contents:" << new_contents;
+
RetargetingDetails details;
details.source_web_contents = source_web_contents_;
// Don't use GetRenderFrameHost() as it may be NULL. crbug.com/399789
« no previous file with comments | « chrome/browser/extensions/api/web_navigation/web_navigation_api.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698