Commit 51b00db2 authored by vitalybuka's avatar vitalybuka Committed by Commit bot

Fixed regression in "Save To Pdf" of Print Preview.

Logical OR was used instead of bitwise OR.

BUG=415437

Review URL: https://codereview.chromium.org/585653003

Cr-Commit-Position: refs/heads/master@{#295588}
parent b012bc3d
......@@ -247,7 +247,7 @@ void PrintToPdfCallback(const scoped_refptr<base::RefCountedBytes>& data,
printing::PdfMetafileSkia metafile;
metafile.InitFromData(static_cast<const void*>(data->front()), data->size());
base::File file(path,
base::File::FLAG_CREATE_ALWAYS || base::File::FLAG_WRITE);
base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE);
metafile.SaveTo(&file);
if (!pdf_file_saved_closure.is_null())
pdf_file_saved_closure.Run();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment