Commit 9702e844 authored by yzshen@chromium.org's avatar yzshen@chromium.org

Change PPB_CharSet_Dev.GetDefaultCharSet to return the default encoding of the...

Change PPB_CharSet_Dev.GetDefaultCharSet to return the default encoding of the web contents instead of the Chrome UI.

BUG=141110
TEST=None


Review URL: https://chromiumcodereview.appspot.com/10834297

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151805 0039d316-1c4b-4281-b951-d872f2087c98
parent a021d47b
......@@ -1363,9 +1363,7 @@ gfx::Size PepperPluginDelegateImpl::GetScreenSize() {
}
std::string PepperPluginDelegateImpl::GetDefaultEncoding() {
// TODO(brettw) bug 56615: Somehow get the preference for the default
// encoding here rather than using the global default for the UI language.
return GetContentClient()->renderer()->GetDefaultEncoding();
return render_view_->webkit_preferences().default_encoding;
}
void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment