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

Unified Diff: Source/web/StorageNamespaceProxy.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/web/PopupContainer.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/StorageNamespaceProxy.cpp
diff --git a/Source/web/StorageNamespaceProxy.cpp b/Source/web/StorageNamespaceProxy.cpp
index 5f79dd3c460c8110a25a25d98567ff4d495cacf5..9f6ecdb577aff452c90d27dacdb5a969f63f5094 100644
--- a/Source/web/StorageNamespaceProxy.cpp
+++ b/Source/web/StorageNamespaceProxy.cpp
@@ -53,7 +53,7 @@ PassOwnPtr<StorageArea> StorageNamespace::localStorageArea(SecurityOrigin* origi
PassOwnPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace(Page* page)
{
- WebKit::WebViewClient* webViewClient = static_cast<WebKit::WebViewImpl*>(page->chrome().client()->webView())->client();
+ WebKit::WebViewClient* webViewClient = WebKit::WebViewImpl::fromPage(page)->client();
return adoptPtr(new StorageNamespaceProxy(adoptPtr(webViewClient->createSessionStorageNamespace())));
}
« no previous file with comments | « Source/web/PopupContainer.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698