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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.cc

Issue 592043005: [WIP]Implement Chromium side changes for navigator.language(s) support for workers. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: languagechange event plumbing for shared worker. Stil WIP. Created 6 years, 2 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/browser/shared_worker/shared_worker_service_impl.h ('k') | content/common/worker_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
index b773127db631cf5b2b7e439452e17d3eb35b3437..4d28d9c398e083307cd67b88ce49da694dc6c697 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.cc
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -662,4 +662,13 @@ void SharedWorkerServiceImpl::ChangeTryIncrementWorkerRefCountFuncForTesting(
s_try_increment_worker_ref_count_ = new_func;
}
+void SharedWorkerServiceImpl::AcceptLanguageChanged(
+ const base::string16& languages) {
+ for (WorkerHostMap::const_iterator iter = worker_hosts_.begin();
+ iter != worker_hosts_.end();
+ ++iter) {
+ iter->second->AcceptLanguageChanged(languages);
+ }
+}
+
} // namespace content
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.h ('k') | content/common/worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698