Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 16207005: Fix remaining uses of WeakPtr<T>'s operator T* conversion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_handle.cc ('k') | chrome/browser/spellchecker/spellcheck_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
index 0693b9695b8ebebc9f04285bfd89b7d4f2245552..44a166dc76e8c37cdf3185c5762be45160c92a4a 100644
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -301,8 +301,7 @@ void SpellcheckHunspellDictionary::DownloadDictionary(GURL url) {
download_status_ = DOWNLOAD_IN_PROGRESS;
FOR_EACH_OBSERVER(Observer, observers_, OnHunspellDictionaryDownloadBegin());
- fetcher_.reset(net::URLFetcher::Create(url, net::URLFetcher::GET,
- weak_ptr_factory_.GetWeakPtr()));
+ fetcher_.reset(net::URLFetcher::Create(url, net::URLFetcher::GET, this));
fetcher_->SetRequestContext(request_context_getter_);
fetcher_->SetLoadFlags(
net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES);
« no previous file with comments | « chrome/browser/prerender/prerender_handle.cc ('k') | chrome/browser/spellchecker/spellcheck_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698