Index: components/search_engines/template_url.cc |
diff --git a/components/search_engines/template_url.cc b/components/search_engines/template_url.cc |
index b5baebed16dc8367e6b4c6abfc06c6e2d7a41663..cb8b039ab7065dd8ea6a85e01f3ec6a3745be880 100644 |
--- a/components/search_engines/template_url.cc |
+++ b/components/search_engines/template_url.cc |
@@ -279,12 +279,9 @@ bool TemplateURLRef::EncodeFormData(const PostParams& post_params, |
return false; |
const char kUploadDataMIMEType[] = "multipart/form-data; boundary="; |
- const char kMultipartBoundary[] = "----+*+----%016" PRIx64 "----+*+----"; |
// Each name/value pair is stored in a body part which is preceded by a |
- // boundary delimiter line. Uses random number generator here to create |
- // a unique boundary delimiter for form data encoding. |
- std::string boundary = base::StringPrintf(kMultipartBoundary, |
- base::RandUint64()); |
+ // boundary delimiter line. |
+ std::string boundary = net::GenerateMimeMultipartBoundary(); |
// Sets the content MIME type. |
post_content->first = kUploadDataMIMEType; |
post_content->first += boundary; |