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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 331793005: Notify the change of brand color from renderer to Brower (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« content/common/frame_messages.h ('K') | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 2a8697dc69ab9488f7b946b31dd3a0c26e2be520..651fb49a4560eec2dc337250d8d5eac209844c6d 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2205,6 +2205,15 @@ void RenderFrameImpl::didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame) {
render_view_->didUpdateCurrentHistoryItem(frame);
}
+void RenderFrameImpl::didChangeBrandColor(blink::WebLocalFrame* frame) {
+ DCHECK(!frame_ || frame_ == frame);
dcheng 2014/06/16 17:21:25 Can frame_ ever be NULL here?
michaelbai 2014/06/16 17:49:22 I don't know, but there is same code in the class,
dcheng 2014/06/16 18:52:19 Right, but things like that get called on the init
jam 2014/06/16 20:00:45 this isn't necessary. also, the WebFrameClient met
michaelbai 2014/06/16 21:09:37 Removed DCHECK(). hmm, as the |frame| parameter,
michaelbai 2014/06/16 21:09:37 Done.
dcheng 2014/06/16 21:16:54 That's all legacy code. Since WebFrame has a 1:1 r
+ if (frame->parent())
dcheng 2014/06/16 17:21:25 Is there a design doc for this? I take it that we
michaelbai 2014/06/16 17:49:23 Feature description is in the linked bug. I think
jam 2014/06/16 20:00:45 If blink is checking this (which I agree makes sen
michaelbai 2014/06/16 21:09:37 Currently blink isn't checking this, I will move i
jam 2014/06/18 00:36:43 since per abarth's comments he wants this to be in
michaelbai 2014/06/18 03:40:12 Done.
+ return;
+
+ Send(new FrameHostMsg_DidChangeBrandColor(
+ routing_id_, frame->document().brandColor()));
+}
+
blink::WebNotificationPresenter* RenderFrameImpl::notificationPresenter() {
return notification_provider_;
}
« content/common/frame_messages.h ('K') | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698