Skip to content

Commit

Permalink
Making pointer Unretained since it will be used on a different thread.
Browse files Browse the repository at this point in the history
BUG=158555
TEST=open new chrome, click "sign in", in login box type "box." -- should not crash


Review URL: https://chromiumcodereview.appspot.com/11363107

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166283 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
rlp@chromium.org committed Nov 6, 2012
1 parent bb31885 commit e994aa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void SpellcheckHunspellDictionary::OnURLFetchComplete(
dictionary_saved_ = false;
BrowserThread::PostTaskAndReply(BrowserThread::FILE, FROM_HERE,
base::Bind(&SpellcheckHunspellDictionary::SaveDictionaryData,
weak_ptr_factory_.GetWeakPtr(), base::Owned(data)),
base::Unretained(this), base::Owned(data)),
base::Bind(&SpellcheckHunspellDictionary::SaveDictionaryDataComplete,
weak_ptr_factory_.GetWeakPtr()));
}
Expand Down

0 comments on commit e994aa4

Please sign in to comment.