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

Unified Diff: components/test_runner/test_runner.cc

Issue 1851483002: Revert of Replicate to all renderers the accepted languages set by a layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splitting-web-frame-test-client
Patch Set: Created 4 years, 9 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 | « components/test_runner/test_runner.h ('k') | components/test_runner/tracked_dictionary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 07218fec0c13baa2284c8493df578251ede47773..cd1f5fb8926c4ce668c85abeb8ec495c3c3f0b36 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -2657,17 +2657,8 @@
delegate_->ApplyPreferences();
}
-std::string TestRunner::GetAcceptLanguages() const {
- return layout_test_runtime_flags_.accept_languages();
-}
-
void TestRunner::SetAcceptLanguages(const std::string& accept_languages) {
- if (accept_languages == GetAcceptLanguages())
- return;
-
- layout_test_runtime_flags_.set_accept_languages(accept_languages);
- OnLayoutTestRuntimeFlagsChanged();
- proxy_->GetWebView()->acceptLanguagesChanged();
+ proxy_->SetAcceptLanguages(accept_languages);
}
void TestRunner::SetPluginsEnabled(bool enabled) {
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/tracked_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698