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

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

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 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/spellchecker/spellcheck_host_impl.h ('k') | chrome/browser/sync/glue/http_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker/spellcheck_host_impl.cc
===================================================================
--- chrome/browser/spellchecker/spellcheck_host_impl.cc (revision 107061)
+++ chrome/browser/spellchecker/spellcheck_host_impl.cc (working copy)
@@ -304,7 +304,7 @@
GURL url = GURL(std::string(kDownloadServerUrl) +
StringToLowerASCII(bdict_file));
fetcher_.reset(new URLFetcher(url, URLFetcher::GET, this));
- fetcher_->set_request_context(request_context_getter_);
+ fetcher_->SetRequestContext(request_context_getter_);
tried_to_download_ = true;
fetcher_->Start();
request_context_getter_ = NULL;
@@ -321,12 +321,12 @@
file_util::CloseFile(f);
}
-void SpellCheckHostImpl::OnURLFetchComplete(const URLFetcher* source) {
+void SpellCheckHostImpl::OnURLFetchComplete(const content::URLFetcher* source) {
DCHECK(source);
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- scoped_ptr<URLFetcher> fetcher_destructor(fetcher_.release());
+ scoped_ptr<content::URLFetcher> fetcher_destructor(fetcher_.release());
- if ((source->response_code() / 100) != 2) {
+ if ((source->GetResponseCode() / 100) != 2) {
// Initialize will not try to download the file a second time.
LOG(ERROR) << "Failure to download dictionary.";
InitializeOnFileThread();
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_host_impl.h ('k') | chrome/browser/sync/glue/http_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698