diff options
author | noamsml@chromium.org <noamsml@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-13 01:22:59 +0000 |
---|---|---|
committer | noamsml@chromium.org <noamsml@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-13 01:22:59 +0000 |
commit | 07212f3038bbcd3c7de2e7299d7c80478f8ba93a (patch) | |
tree | fe9594720a0a0af9b15d63b29ce9946af1bce548 | |
parent | f9e56701a915a4cafcc725cdc0f796e3d11458d8 (diff) | |
download | chromium_src-07212f3038bbcd3c7de2e7299d7c80478f8ba93a.zip chromium_src-07212f3038bbcd3c7de2e7299d7c80478f8ba93a.tar.gz chromium_src-07212f3038bbcd3c7de2e7299d7c80478f8ba93a.tar.bz2 |
For PWG raster file creation, use FLAG_WRITE instead of FLAG_APPEND
FLAG_CREATE_AWLAYS doesn't make sense with FLAG_APPEND.
BUG=383997
Review URL: https://codereview.chromium.org/330083004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276878 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/local_discovery/pwg_raster_converter.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/local_discovery/pwg_raster_converter.cc b/chrome/browser/local_discovery/pwg_raster_converter.cc index 0f39430..b912f38 100644 --- a/chrome/browser/local_discovery/pwg_raster_converter.cc +++ b/chrome/browser/local_discovery/pwg_raster_converter.cc @@ -76,9 +76,8 @@ void FileHandlers::Init(base::RefCountedMemory* data) { // Reopen in read only mode. pdf_file_.Initialize(GetPdfPath(), base::File::FLAG_OPEN | base::File::FLAG_READ); - pwg_file_.Initialize( - GetPwgPath(), - base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_APPEND); + pwg_file_.Initialize(GetPwgPath(), + base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE); } bool FileHandlers::IsValid() { |