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

Unified Diff: chrome/browser/alternate_nav_url_fetcher.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/alternate_nav_url_fetcher.h ('k') | chrome/browser/autocomplete/search_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/alternate_nav_url_fetcher.cc
===================================================================
--- chrome/browser/alternate_nav_url_fetcher.cc (revision 107061)
+++ chrome/browser/alternate_nav_url_fetcher.cc (working copy)
@@ -162,10 +162,11 @@
}
}
-void AlternateNavURLFetcher::OnURLFetchComplete(const URLFetcher* source) {
+void AlternateNavURLFetcher::OnURLFetchComplete(
+ const content::URLFetcher* source) {
DCHECK_EQ(fetcher_.get(), source);
SetStatusFromURLFetch(
- source->url(), source->status(), source->response_code());
+ source->GetUrl(), source->GetStatus(), source->GetResponseCode());
ShowInfobarIfPossible();
// WARNING: |this| may be deleted!
}
@@ -179,7 +180,7 @@
state_ = IN_PROGRESS;
fetcher_.reset(new URLFetcher(GURL(alternate_nav_url_), URLFetcher::HEAD,
this));
- fetcher_->set_request_context(
+ fetcher_->SetRequestContext(
controller_->browser_context()->GetRequestContext());
fetcher_->Start();
}
« no previous file with comments | « chrome/browser/alternate_nav_url_fetcher.h ('k') | chrome/browser/autocomplete/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698