diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 01:12:22 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 01:12:22 +0000 |
commit | 36aea270be00f58680c3eff2cfeb7061c35276d5 (patch) | |
tree | 08066a2eef66b64f9a98fb16160b9ac90c1a82b1 /chrome/browser/bug_report_util.cc | |
parent | 28973f008ca89d623ec9ce48518a04436b1c71e4 (diff) | |
download | chromium_src-36aea270be00f58680c3eff2cfeb7061c35276d5.zip chromium_src-36aea270be00f58680c3eff2cfeb7061c35276d5.tar.gz chromium_src-36aea270be00f58680c3eff2cfeb7061c35276d5.tar.bz2 |
Convert chrome callers of UrlFetcher to use the interface. I'll switch tests to use composition instead of inheritence in a future change.
BUG=98716
Review URL: http://codereview.chromium.org/8395023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bug_report_util.cc')
-rw-r--r-- | chrome/browser/bug_report_util.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/bug_report_util.cc b/chrome/browser/bug_report_util.cc index 1adb185..24eff64 100644 --- a/chrome/browser/bug_report_util.cc +++ b/chrome/browser/bug_report_util.cc @@ -22,7 +22,7 @@ #include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_version_info.h" #include "content/browser/tab_contents/tab_contents.h" -#include "content/common/net/url_fetcher.h" +#include "content/public/common/url_fetcher.h" #include "content/public/common/url_fetcher_delegate.h" #include "googleurl/src/gurl.h" #include "grit/generated_resources.h" @@ -188,10 +188,9 @@ void BugReportUtil::SendFeedback(Profile* profile, else post_url = GURL(kBugReportPostUrl); - URLFetcher* fetcher = new URLFetcher(post_url, URLFetcher::POST, - new BugReportUtil::PostCleanup(profile, - post_body, - previous_delay)); + content::URLFetcher* fetcher = content::URLFetcher::Create( + post_url, content::URLFetcher::POST, + new BugReportUtil::PostCleanup(profile, post_body, previous_delay)); fetcher->SetRequestContext(profile->GetRequestContext()); fetcher->SetUploadData(std::string(kProtBufMimeType), *post_body); |