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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 9068001: Merge 114806 - Include the information whether the tab is already in a tab strip with the retarge... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: Created 8 years, 12 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: chrome/browser/tab_contents/render_view_host_delegate_helper.cc
===================================================================
--- chrome/browser/tab_contents/render_view_host_delegate_helper.cc (revision 116088)
+++ chrome/browser/tab_contents/render_view_host_delegate_helper.cc (working copy)
@@ -21,6 +21,7 @@
#include "chrome/browser/prerender/prerender_manager_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tab_contents/background_contents.h"
+#include "chrome/browser/tab_contents/retargeting_details.h"
#include "chrome/browser/user_style_sheet_watcher.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_view_type.h"
@@ -270,16 +271,17 @@
if (tab_contents->delegate())
tab_contents->delegate()->TabContentsCreated(new_contents);
- content::RetargetingDetails details;
+ RetargetingDetails details;
details.source_tab_contents = tab_contents;
details.source_frame_id = params.opener_frame_id;
details.target_url = params.target_url;
details.target_tab_contents = new_contents;
+ details.not_yet_in_tabstrip = true;
content::NotificationService::current()->Notify(
- content::NOTIFICATION_RETARGETING,
- content::Source<content::BrowserContext>(
- tab_contents->browser_context()),
- content::Details<content::RetargetingDetails>(&details));
+ chrome::NOTIFICATION_RETARGETING,
+ content::Source<Profile>(
+ Profile::FromBrowserContext(tab_contents->browser_context())),
+ content::Details<RetargetingDetails>(&details));
} else {
content::NotificationService::current()->Notify(
content::NOTIFICATION_CREATING_NEW_WINDOW_CANCELLED,
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/tab_contents/retargeting_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698