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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2293373002: Remove unused prefs/api/resource for setPageEncoding (Closed)
Patch Set: It's September! Created 4 years, 3 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 | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698