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

Unified Diff: chrome/browser/importer/toolbar_importer.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/importer/toolbar_importer.h ('k') | chrome/browser/intranet_redirect_detector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/toolbar_importer.cc
===================================================================
--- chrome/browser/importer/toolbar_importer.cc (revision 107061)
+++ chrome/browser/importer/toolbar_importer.cc (working copy)
@@ -97,13 +97,13 @@
}
}
-void Toolbar5Importer::OnURLFetchComplete(const URLFetcher* source) {
+void Toolbar5Importer::OnURLFetchComplete(const content::URLFetcher* source) {
if (cancelled()) {
EndImport();
return;
}
- if (200 != source->response_code()) { // HTTP/Ok
+ if (200 != source->GetResponseCode()) { // HTTP/Ok
// Cancelling here will update the UI and bypass the rest of bookmark
// import.
EndImportBookmarks();
@@ -207,7 +207,7 @@
GURL url(url_string);
token_fetcher_ = new URLFetcher(url, URLFetcher::GET, this);
- token_fetcher_->set_request_context(
+ token_fetcher_->SetRequestContext(
Profile::Deprecated::GetDefaultRequestContext());
token_fetcher_->Start();
}
@@ -241,7 +241,7 @@
GURL url(conn_string);
data_fetcher_ = new URLFetcher(url, URLFetcher::GET, this);
- data_fetcher_->set_request_context(
+ data_fetcher_->SetRequestContext(
Profile::Deprecated::GetDefaultRequestContext());
data_fetcher_->Start();
}
« no previous file with comments | « chrome/browser/importer/toolbar_importer.h ('k') | chrome/browser/intranet_redirect_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698