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

Unified Diff: chrome/browser/search/most_visited_iframe_source.cc

Issue 102433009: Most visited iframe now postMessage to signal the iframing page that the link has been displayed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 11 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/search/iframe_source_unittest.cc ('k') | chrome/browser/ui/webui/ntp/ntp_user_data_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/most_visited_iframe_source.cc
diff --git a/chrome/browser/search/most_visited_iframe_source.cc b/chrome/browser/search/most_visited_iframe_source.cc
index de00f0c8d31bf3caf3da6da87b0f3571d0a10f08..d8c114ac5b2763298e672b6a64dd7f6863c73703 100644
--- a/chrome/browser/search/most_visited_iframe_source.cc
+++ b/chrome/browser/search/most_visited_iframe_source.cc
@@ -60,7 +60,8 @@ void MostVisitedIframeSource::StartDataRequest(
} else if (path == kThumbnailCSSPath) {
SendResource(IDR_MOST_VISITED_THUMBNAIL_CSS, callback);
} else if (path == kThumbnailJSPath) {
- SendResource(IDR_MOST_VISITED_THUMBNAIL_JS, callback);
+ SendJSWithOrigin(IDR_MOST_VISITED_THUMBNAIL_JS, render_process_id,
+ render_frame_id, callback);
} else if (path == kUtilJSPath) {
SendResource(IDR_MOST_VISITED_UTIL_JS, callback);
} else if (path == kCommonCSSPath) {
« no previous file with comments | « chrome/browser/search/iframe_source_unittest.cc ('k') | chrome/browser/ui/webui/ntp/ntp_user_data_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698