diff options
author | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-06 22:12:00 +0000 |
---|---|---|
committer | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-06 22:12:00 +0000 |
commit | e994aa4003ecc2b370667d29d1e765a1fbf3e77b (patch) | |
tree | 05843a7e8ac08b4327b7abd7a18cdd0bd4cfa893 | |
parent | bb31885061be33f7a54de27bd6dc0c1d74b7c793 (diff) | |
download | chromium_src-e994aa4003ecc2b370667d29d1e765a1fbf3e77b.zip chromium_src-e994aa4003ecc2b370667d29d1e765a1fbf3e77b.tar.gz chromium_src-e994aa4003ecc2b370667d29d1e765a1fbf3e77b.tar.bz2 |
Making pointer Unretained since it will be used on a different thread.
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
-rw-r--r-- | chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc index 36b14fd..5bc5a57 100644 --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc @@ -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())); } |