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

Unified Diff: chrome/browser/ui/find_bar/find_tab_helper.cc

Issue 128453002: Move Find Operations from RenderViewHost to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed android build 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
Index: chrome/browser/ui/find_bar/find_tab_helper.cc
diff --git a/chrome/browser/ui/find_bar/find_tab_helper.cc b/chrome/browser/ui/find_bar/find_tab_helper.cc
index f0ad3b57e89d20ec95df6372def33b599f223c05..8a3570f750f53f303f90d39e83f7a1d2d391072a 100644
--- a/chrome/browser/ui/find_bar/find_tab_helper.cc
+++ b/chrome/browser/ui/find_bar/find_tab_helper.cc
@@ -89,8 +89,7 @@ void FindTabHelper::StartFinding(base::string16 search_string,
options.forward = forward_direction;
options.matchCase = case_sensitive;
options.findNext = find_next;
- web_contents()->GetRenderViewHost()->Find(current_find_request_id_,
- find_text_, options);
+ web_contents()->Find(current_find_request_id_, find_text_, options);
}
void FindTabHelper::StopFinding(
@@ -124,7 +123,7 @@ void FindTabHelper::StopFinding(
NOTREACHED();
action = content::STOP_FIND_ACTION_KEEP_SELECTION;
}
- web_contents()->GetRenderViewHost()->StopFinding(action);
+ web_contents()->StopFinding(action);
}
#if defined(OS_ANDROID)
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698