| Index: components/search_engines/template_url.cc
|
| diff --git a/components/search_engines/template_url.cc b/components/search_engines/template_url.cc
|
| index 4bc489192d659d74fd163bb0b58f59ec12b61346..4a3b0aefe969b11888b82244dcbe842cdc3e4b9d 100644
|
| --- a/components/search_engines/template_url.cc
|
| +++ b/components/search_engines/template_url.cc
|
| @@ -278,12 +278,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;
|
|
|