summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 17:01:37 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 17:01:37 +0000
commit0a725a3dd1278a1578c114f3bdc598710d1a94af (patch)
treeee3e7e8528d0c573b1a6084e2e526faac1372e66 /chrome
parent24b3b4de275cd9d9970c2f14d47ada7612043b06 (diff)
downloadchromium_src-0a725a3dd1278a1578c114f3bdc598710d1a94af.zip
chromium_src-0a725a3dd1278a1578c114f3bdc598710d1a94af.tar.gz
chromium_src-0a725a3dd1278a1578c114f3bdc598710d1a94af.tar.bz2
Remove an #if !defined(OS_LINUX)
Fixes a linux crash on opening a new tab, because without this code, the render process sends a page_id of 1 to the browser process, which crashes in NavigationController::ClassifyNavigation since page_id==1 is not higher than the max page id (when you've already surfed to another page in a previous tab), so the NavigationController crashes on trying to look up an entry for the page which doesn't exist. Review URL: http://codereview.chromium.org/60006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/render_thread.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 6c9fe614..2e4ad09 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -174,10 +174,7 @@ void RenderThread::OnControlMessageReceived(const IPC::Message& msg) {
void RenderThread::OnSetNextPageID(int32 next_page_id) {
// This should only be called at process initialization time, so we shouldn't
// have to worry about thread-safety.
- // TODO(port)
-#if !defined(OS_LINUX)
RenderView::SetNextPageID(next_page_id);
-#endif
}
void RenderThread::OnCreateNewView(gfx::NativeViewId parent_hwnd,