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

Unified Diff: chrome/common/cloud_print/cloud_print_helpers.cc

Issue 1547593002: Introducing a net::GenerateMimeMultipartBoundary helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 12 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/common/cloud_print/cloud_print_helpers.cc
diff --git a/chrome/common/cloud_print/cloud_print_helpers.cc b/chrome/common/cloud_print/cloud_print_helpers.cc
index 406c54b33f2cc86ac1aea5c235806a5b329a39d4..03fba827f710179baf42b2d5190d9623596ce544 100644
--- a/chrome/common/cloud_print/cloud_print_helpers.cc
+++ b/chrome/common/cloud_print/cloud_print_helpers.cc
@@ -207,13 +207,6 @@ std::string GetMultipartMimeType(const std::string& mime_boundary) {
return std::string("multipart/form-data; boundary=") + mime_boundary;
}
-// Create a MIME boundary marker (27 '-' characters followed by 16 hex digits).
-void CreateMimeBoundaryForUpload(std::string* out) {
- int r1 = base::RandInt(0, std::numeric_limits<int32_t>::max());
- int r2 = base::RandInt(0, std::numeric_limits<int32_t>::max());
- base::SStringPrintf(out, "---------------------------%08X%08X", r1, r2);
-}
-
std::string GetHashOfPrinterTags(const PrinterTags& printer_tags) {
return HashPrinterTags(PreparePrinterTags(printer_tags));
}

Powered by Google App Engine
This is Rietveld 408576698