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

Unified Diff: chrome/browser/bug_report_util.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
Index: chrome/browser/bug_report_util.cc
===================================================================
--- chrome/browser/bug_report_util.cc (revision 107061)
+++ chrome/browser/bug_report_util.cc (working copy)
@@ -88,7 +88,7 @@
post_body_(post_body),
previous_delay_(previous_delay) { }
// Overridden from content::URLFetcherDelegate.
- virtual void OnURLFetchComplete(const URLFetcher* source);
+ virtual void OnURLFetchComplete(const content::URLFetcher* source);
protected:
virtual ~PostCleanup() {}
@@ -104,10 +104,10 @@
// Don't use the data parameter, instead use the pointer we pass into every
// post cleanup object - that pointer will be deleted and deleted only on a
// successful post to the feedback server.
-void BugReportUtil::PostCleanup::OnURLFetchComplete(const URLFetcher* source) {
-
+void BugReportUtil::PostCleanup::OnURLFetchComplete(
+ const content::URLFetcher* source) {
std::stringstream error_stream;
- int response_code = source->response_code();
+ int response_code = source->GetResponseCode();
if (response_code == kHttpPostSuccessNoContent) {
// We've sent our report, delete the report data
delete post_body_;
@@ -136,8 +136,8 @@
}
}
- LOG(WARNING) << "FEEDBACK: Submission to feedback server (" << source->url()
- << ") status: " << error_stream.str();
+ LOG(WARNING) << "FEEDBACK: Submission to feedback server (" <<
+ source->GetUrl() << ") status: " << error_stream.str();
// Delete the URLFetcher.
delete source;
@@ -192,9 +192,9 @@
new BugReportUtil::PostCleanup(profile,
post_body,
previous_delay));
- fetcher->set_request_context(profile->GetRequestContext());
+ fetcher->SetRequestContext(profile->GetRequestContext());
- fetcher->set_upload_data(std::string(kProtBufMimeType), *post_body);
+ fetcher->SetUploadData(std::string(kProtBufMimeType), *post_body);
fetcher->Start();
}
« no previous file with comments | « chrome/browser/autofill/autofill_download_unittest.cc ('k') | chrome/browser/chromeos/customization_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698