Refactored from bug_report_view.cc and bug_report_view.h, I extracted send_report()
, report_phishing()
, a few other smaller functions and BugReport::Cleanup
into bug_report.cc and bug_report.h (my versions). Compiling now, I get:
[...]bug_report.cc:196: error: no matching function for call to ‘URLFetcher::URLFetcher(std::wstring&, URLFetcher::RequestType, BugReport::PostCleanup*)’ ../chrome/browser/net/url_fetcher.h:136:
note: candidates are: URLFetcher::URLFetcher(const URLFetcher&) ../chrome/browser/net/url_fetcher.h:82:
note: URLFetcher::URLFetcher(const GURL&, URLFetcher::RequestType, URLFetcher::Delegate*)
For some reason, BugReport::PostCleanup
(in my version) isn't recognized as a subclass of URLFetcher::Delegate, but BugReportView::PostCleanup
(in the first links) is. So where did I mess up? Thanks.