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

Unified Diff: chrome/browser/local_discovery/pwg_raster_converter.cc

Issue 330083004: For PWG raster file creation, use FLAG_WRITE instead of FLAG_APPEND (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/pwg_raster_converter.cc
diff --git a/chrome/browser/local_discovery/pwg_raster_converter.cc b/chrome/browser/local_discovery/pwg_raster_converter.cc
index 0f39430ba201d7f90f4439e64ab0a3fc6e3db5cc..b912f382bd8bbca142960ea93d8b1419f7bc1ce9 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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698