Index: content/shell/renderer/test_runner/web_test_proxy.cc |
diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc |
index 58dd26c3ef9bb87d7dd51bf6ab262f18cec48b54..2126c54c63de1f824d52e62b512a957d7cd75cd0 100644 |
--- a/content/shell/renderer/test_runner/web_test_proxy.cc |
+++ b/content/shell/renderer/test_runner/web_test_proxy.cc |
@@ -317,6 +317,7 @@ void WebTestProxyBase::Reset() { |
resource_identifier_map_.clear(); |
log_console_output_ = true; |
if (m_midiClient.get()) m_midiClient->resetMock(); |
+ accept_languages_ = "en-US"; |
} |
WebSpellCheckClient* WebTestProxyBase::GetSpellCheckClient() const { |
@@ -418,6 +419,14 @@ void WebTestProxyBase::didCompositeAndReadback(const SkBitmap& bitmap) { |
composite_and_readback_callbacks_.pop_front(); |
} |
+void WebTestProxyBase::SetAcceptLanguages(const std::string& accept_languages) { |
+ bool notify = accept_languages_ != accept_languages; |
+ accept_languages_ = accept_languages; |
+ |
+ if (notify) |
+ GetWebView()->acceptLanguagesChanged(); |
+} |
+ |
void WebTestProxyBase::CapturePixelsForPrinting( |
const base::Callback<void(const SkBitmap&)>& callback) { |
web_widget_->layout(); |
@@ -1113,4 +1122,8 @@ void WebTestProxyBase::ResetInputMethod() { |
if (web_widget_) web_widget_->confirmComposition(); |
} |
+blink::WebString WebTestProxyBase::acceptLanguages() { |
+ return WebString::fromUTF8(accept_languages_); |
+} |
+ |
} // namespace content |