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

Unified Diff: trunk/src/chrome/browser/feedback/feedback_util.cc

Issue 149993002: Revert 247772 "Cache feedback reports to disk in case of send fa..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/chrome/browser/feedback/feedback_util.cc
===================================================================
--- trunk/src/chrome/browser/feedback/feedback_util.cc (revision 247814)
+++ trunk/src/chrome/browser/feedback/feedback_util.cc (working copy)
@@ -239,12 +239,12 @@
// This pointer will eventually get deleted by the PostCleanup class, after
// we've either managed to successfully upload the report or died trying.
- std::string post_body;
- feedback_data.SerializeToString(&post_body);
+ scoped_ptr<std::string> post_body(new std::string);
+ feedback_data.SerializeToString(post_body.get());
feedback::FeedbackUploader *uploader =
feedback::FeedbackUploaderFactory::GetForBrowserContext(data->profile());
- uploader->QueueReport(post_body);
+ uploader->QueueReport(post_body.Pass());
}
bool ZipString(const base::FilePath& filename,
« no previous file with comments | « trunk/src/chrome/browser/feedback/feedback_uploader_unittest.cc ('k') | trunk/src/chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698