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

Unified Diff: Source/web/AutofillPopupMenuClient.cpp

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/core/testing/Internals.cpp ('k') | Source/web/PopupContainer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/AutofillPopupMenuClient.cpp
diff --git a/Source/web/AutofillPopupMenuClient.cpp b/Source/web/AutofillPopupMenuClient.cpp
index 2c4fc51aeca625e91ffb2929e97253209e04603f..bedbbe2f9a6fa690904a7c9fffbdedeb61124133 100644
--- a/Source/web/AutofillPopupMenuClient.cpp
+++ b/Source/web/AutofillPopupMenuClient.cpp
@@ -331,15 +331,7 @@ void AutofillPopupMenuClient::setSuggestions(const WebVector<WebString>& names,
WebViewImpl* AutofillPopupMenuClient::getWebView() const
{
- Frame* frame = m_textField->document()->frame();
- if (!frame)
- return 0;
-
- Page* page = frame->page();
- if (!page)
- return 0;
-
- return static_cast<WebViewImpl*>(page->chrome().client()->webView());
+ return WebViewImpl::fromPage(m_textField->document()->page());
}
RenderStyle* AutofillPopupMenuClient::textFieldStyle() const
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/PopupContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698