Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index 5940baf6f9559dc025d0443abcbaeadcb2ec3387..b884a9077e9384a6a0284a7d45d2dd3012017b4b 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -1303,6 +1303,9 @@ void TabContents::OnDidStartProvisionalLoadForFrame(int64 frame_id, |
void TabContents::OnDidRedirectProvisionalLoad(int32 page_id, |
const GURL& source_url, |
const GURL& target_url) { |
+ // TODO(creis): Remove this method and have the pre-rendering code listen to |
+ // the ResourceDispatcherHost's RESOURCE_RECEIVED_REDIRECT notification |
+ // instead. See http://crbug.com/78512. |
NavigationEntry* entry; |
if (page_id == -1) |
entry = controller_.pending_entry(); |
@@ -1310,7 +1313,6 @@ void TabContents::OnDidRedirectProvisionalLoad(int32 page_id, |
entry = controller_.GetEntryWithPageID(GetSiteInstance(), page_id); |
if (!entry || entry->url() != source_url) |
return; |
- entry->set_url(target_url); |
// Notify observers about the provisional change in the main frame URL. |
FOR_EACH_OBSERVER(TabContentsObserver, observers_, |