| Index: content/renderer/render_thread_impl.cc
|
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
| index a47ea0cabcb928515ae5a1c599a926e35c2ab0b3..0d62110a08dea762cbf3a6bc8e8586f0fa334c36 100644
|
| --- a/content/renderer/render_thread_impl.cc
|
| +++ b/content/renderer/render_thread_impl.cc
|
| @@ -671,8 +671,10 @@ bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
|
| }
|
|
|
| void RenderThreadImpl::OnSetNextPageID(int32 next_page_id) {
|
| - // This should only be called at process initialization time, so we shouldn't
|
| - // have to worry about thread-safety.
|
| + // This is called at process initialization time or when this process is
|
| + // being re-used for a new RenderView. It is ok if another RenderView
|
| + // has identical page_ids or inflates next_page_id_ just before this arrives,
|
| + // as long as we ensure next_page_id_ is at least this large.
|
| RenderViewImpl::SetNextPageID(next_page_id);
|
| }
|
|
|
|
|