Commit f5922653 authored by shishir@chromium.org's avatar shishir@chromium.org

InstantExtended: Fixing a crash when the stale timer could fire after InstantController is deleted.

BUG=232625

Review URL: https://codereview.chromium.org/14161020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194713 0039d316-1c4b-4281-b951-d872f2087c98
parent f5961143
...@@ -121,6 +121,7 @@ void InstantLoader::SetContents(scoped_ptr<content::WebContents> new_contents) { ...@@ -121,6 +121,7 @@ void InstantLoader::SetContents(scoped_ptr<content::WebContents> new_contents) {
} }
scoped_ptr<content::WebContents> InstantLoader::ReleaseContents() { scoped_ptr<content::WebContents> InstantLoader::ReleaseContents() {
stale_page_timer_.Stop();
contents_->SetDelegate(NULL); contents_->SetDelegate(NULL);
// Undo tab helper work done in SetContents(). // Undo tab helper work done in SetContents().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment