Chromium Code Reviews| Index: content/renderer/render_thread_impl.cc |
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
| index 605769b9e6bd1c8adde074de5f3644b54ae62b42..691915a90fd770dbfbc68f1391591dcaef20bfd5 100644 |
| --- a/content/renderer/render_thread_impl.cc |
| +++ b/content/renderer/render_thread_impl.cc |
| @@ -588,6 +588,7 @@ RenderThreadImpl::RenderThreadImpl( |
| .ConnectToBrowser(true) |
| .Build()), |
| renderer_scheduler_(std::move(scheduler)), |
| + time_zone_monitor_binding_(this), |
| categorized_worker_pool_(new CategorizedWorkerPool()) { |
| Init(resource_task_queue); |
| } |
| @@ -603,6 +604,7 @@ RenderThreadImpl::RenderThreadImpl( |
| .ConnectToBrowser(true) |
| .Build()), |
| renderer_scheduler_(std::move(scheduler)), |
| + time_zone_monitor_binding_(this), |
| main_message_loop_(std::move(main_message_loop)), |
| categorized_worker_pool_(new CategorizedWorkerPool()) { |
| scoped_refptr<base::SingleThreadTaskRunner> test_task_counter; |
| @@ -855,6 +857,10 @@ void RenderThreadImpl::Init( |
| GetRemoteInterfaces()->GetInterface( |
| mojo::GetProxy(&storage_partition_service_)); |
| + GetRemoteInterfaces()->GetInterface(mojo::GetProxy(&time_zone_monitor_)); |
|
Ken Rockot(use gerrit already)
2016/09/13 15:27:03
nit: No need for time_zone_monitor_ to be owned by
blundell
2016/09/14 09:35:13
Done.
|
| + time_zone_monitor_->AddClient( |
| + time_zone_monitor_binding_.CreateInterfacePtrAndBind()); |
| + |
| is_renderer_suspended_ = false; |
| } |
| @@ -1651,7 +1657,6 @@ bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) { |
| IPC_MESSAGE_HANDLER(ViewMsg_NetworkConnectionChanged, |
| OnNetworkConnectionChanged) |
| IPC_MESSAGE_HANDLER(WorkerProcessMsg_CreateWorker, OnCreateNewSharedWorker) |
| - IPC_MESSAGE_HANDLER(ViewMsg_TimezoneChange, OnUpdateTimezone) |
| #if defined(OS_ANDROID) |
| IPC_MESSAGE_HANDLER(ViewMsg_SetWebKitSharedTimersSuspended, |
| OnSetWebKitSharedTimersSuspended) |
| @@ -1973,7 +1978,7 @@ void RenderThreadImpl::OnNetworkConnectionChanged( |
| NetConnectionTypeToWebConnectionType(type), max_bandwidth_mbps); |
| } |
| -void RenderThreadImpl::OnUpdateTimezone(const std::string& zone_id) { |
| +void RenderThreadImpl::OnTimeZoneChange(const std::string& zone_id) { |
| if (!blink_platform_impl_) |
| return; |
| if (!zone_id.empty()) { |