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

Unified Diff: chrome/browser/validation_message_message_filter.cc

Issue 16431010: Refactor RenderProcessHost to use IPC::Listener instead of RenderWidgetHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of hash_pair move. Created 7 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
Index: chrome/browser/validation_message_message_filter.cc
diff --git a/chrome/browser/validation_message_message_filter.cc b/chrome/browser/validation_message_message_filter.cc
index 1d48232fb5648748444c58d58b41fffff4d45d01..ef2366bed06d108c9ac8266f0fa69cc3cf8239c4 100644
--- a/chrome/browser/validation_message_message_filter.cc
+++ b/chrome/browser/validation_message_message_filter.cc
@@ -62,8 +62,8 @@ void ValidationMessageMessageFilter::OverrideThreadForMessage(
void ValidationMessageMessageFilter::OnShowValidationMessage(
int route_id, const gfx::Rect& anchor_in_root_view,
const string16& main_text, const string16& sub_text) {
- RenderProcessHost* process = RenderProcessHost::FromID(renderer_id_);
- RenderWidgetHost* widget_host = process->GetRenderWidgetHostByID(route_id);
+ RenderWidgetHost* widget_host =
+ RenderWidgetHost::FromID(renderer_id_, route_id);
validation_message_bubble_ = chrome::ValidationMessageBubble::CreateAndShow(
widget_host, anchor_in_root_view, main_text, sub_text);
}
@@ -76,8 +76,8 @@ void ValidationMessageMessageFilter::OnMoveValidationMessage(
int route_id, const gfx::Rect& anchor_in_root_view) {
if (!validation_message_bubble_)
return;
- RenderProcessHost* process = RenderProcessHost::FromID(renderer_id_);
- RenderWidgetHost* widget_host = process->GetRenderWidgetHostByID(route_id);
+ RenderWidgetHost* widget_host =
+ RenderWidgetHost::FromID(renderer_id_, route_id);
validation_message_bubble_->SetPositionRelativeToAnchor(
widget_host, anchor_in_root_view);
}

Powered by Google App Engine
This is Rietveld 408576698