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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 8734007: Merge 110556 - Fix next_page_id_ in a NTP forced to share an existing WebUI process. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 years, 1 month 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/site_instance.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
===================================================================
--- content/renderer/render_thread_impl.cc (revision 112056)
+++ content/renderer/render_thread_impl.cc (working copy)
@@ -664,8 +664,10 @@
}
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);
}
« no previous file with comments | « content/browser/site_instance.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698