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

Unified Diff: content/shell/renderer/test_runner/web_test_proxy.cc

Issue 305633005: Revert of Content side of languagechange event fired on accept languages changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « content/shell/renderer/test_runner/web_test_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0ed8618d52b5a828adb06ae02fce087541e214bc..ff686c8dfa429f98bf26a10dbb7dc7525c61ad05 100644
--- a/content/shell/renderer/test_runner/web_test_proxy.cc
+++ b/content/shell/renderer/test_runner/web_test_proxy.cc
@@ -317,7 +317,6 @@
resource_identifier_map_.clear();
log_console_output_ = true;
if (m_midiClient.get()) m_midiClient->resetMock();
- accept_languages_ = "en-US";
}
WebSpellCheckClient* WebTestProxyBase::GetSpellCheckClient() const {
@@ -419,14 +418,6 @@
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();
@@ -1122,8 +1113,4 @@
if (web_widget_) web_widget_->confirmComposition();
}
-blink::WebString WebTestProxyBase::acceptLanguages() {
- return WebString::fromUTF8(accept_languages_);
-}
-
} // namespace content
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698