summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 22:12:00 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 22:12:00 +0000
commite994aa4003ecc2b370667d29d1e765a1fbf3e77b (patch)
tree05843a7e8ac08b4327b7abd7a18cdd0bd4cfa893
parentbb31885061be33f7a54de27bd6dc0c1d74b7c793 (diff)
downloadchromium_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.cc2
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()));
}