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

Unified Diff: chrome/browser/google/google_url_tracker.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/google/google_url_tracker.h ('k') | chrome/browser/importer/toolbar_importer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_url_tracker.cc
===================================================================
--- chrome/browser/google/google_url_tracker.cc (revision 107061)
+++ chrome/browser/google/google_url_tracker.cc (working copy)
@@ -211,23 +211,23 @@
// We don't want this fetch to affect existing state in local_state. For
// example, if a user has no Google cookies, this automatic check should not
// cause one to be set, lest we alarm the user.
- fetcher_->set_load_flags(net::LOAD_DISABLE_CACHE |
- net::LOAD_DO_NOT_SAVE_COOKIES);
- fetcher_->set_request_context(g_browser_process->system_request_context());
+ fetcher_->SetLoadFlags(net::LOAD_DISABLE_CACHE |
+ net::LOAD_DO_NOT_SAVE_COOKIES);
+ fetcher_->SetRequestContext(g_browser_process->system_request_context());
// Configure to max_retries at most kMaxRetries times for 5xx errors.
static const int kMaxRetries = 5;
- fetcher_->set_max_retries(kMaxRetries);
+ fetcher_->SetMaxRetries(kMaxRetries);
fetcher_->Start();
}
-void GoogleURLTracker::OnURLFetchComplete(const URLFetcher* source) {
+void GoogleURLTracker::OnURLFetchComplete(const content::URLFetcher* source) {
// Delete the fetcher on this function's exit.
- scoped_ptr<URLFetcher> clean_up_fetcher(fetcher_.release());
+ scoped_ptr<content::URLFetcher> clean_up_fetcher(fetcher_.release());
// Don't update the URL if the request didn't succeed.
- if (!source->status().is_success() || (source->response_code() != 200)) {
+ if (!source->GetStatus().is_success() || (source->GetResponseCode() != 200)) {
already_fetched_ = false;
return;
}
« no previous file with comments | « chrome/browser/google/google_url_tracker.h ('k') | chrome/browser/importer/toolbar_importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698