Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index ff433effbcbe3520a2a49993575a115638249d54..6b636ffe4f87e01c2ecbbf0ee09eb2c2536fc134 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -2873,30 +2873,6 @@ WebString WebViewImpl::pageEncoding() const |
return m_page->deprecatedLocalMainFrame()->document()->encodingName(); |
} |
-void WebViewImpl::setPageEncoding(const WebString& encodingName) |
-{ |
- if (!m_page) |
- return; |
- |
- // Only change override encoding, don't change default encoding. |
- // Note that the new encoding must be 0 if it isn't supposed to be set. |
- AtomicString newEncodingName; |
- if (!encodingName.isEmpty()) |
- newEncodingName = encodingName; |
- m_page->frameHost().setOverrideEncoding(newEncodingName); |
- |
- if (m_page->mainFrame()->isLocalFrame()) { |
- if (!m_page->deprecatedLocalMainFrame()->loader().currentItem()) |
- return; |
- FrameLoadRequest request = FrameLoadRequest( |
- nullptr, |
- m_page->deprecatedLocalMainFrame()->loader().resourceRequestForReload( |
- FrameLoadTypeReload, KURL(), ClientRedirectPolicy::ClientRedirect)); |
- request.setClientRedirect(ClientRedirectPolicy::ClientRedirect); |
- m_page->deprecatedLocalMainFrame()->loader().load(request, FrameLoadTypeReload); |
- } |
-} |
- |
WebFrame* WebViewImpl::mainFrame() |
{ |
return WebFrame::fromFrame(m_page ? m_page->mainFrame() : nullptr); |