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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if (offset < position()) 80 if (offset < position())
81 setPosition(offset); 81 setPosition(offset);
82 setLength(offset); 82 setLength(offset);
83 } 83 }
84 84
85 void FileWriterSync::didWrite(long long bytes, bool complete) { 85 void FileWriterSync::didWrite(long long bytes, bool complete) {
86 DCHECK_EQ(FileError::kOK, m_error); 86 DCHECK_EQ(FileError::kOK, m_error);
87 #if DCHECK_IS_ON() 87 #if DCHECK_IS_ON()
88 DCHECK(!m_complete); 88 DCHECK(!m_complete);
89 m_complete = complete; 89 m_complete = complete;
90 #else
91 ASSERT_UNUSED(complete, complete);
92 #endif 90 #endif
93 } 91 }
94 92
95 void FileWriterSync::didTruncate() { 93 void FileWriterSync::didTruncate() {
96 DCHECK_EQ(FileError::kOK, m_error); 94 DCHECK_EQ(FileError::kOK, m_error);
97 #if DCHECK_IS_ON() 95 #if DCHECK_IS_ON()
98 DCHECK(!m_complete); 96 DCHECK(!m_complete);
99 m_complete = true; 97 m_complete = true;
100 #endif 98 #endif
101 } 99 }
(...skipping 26 matching lines...) Expand all
128 #endif 126 #endif
129 } 127 }
130 128
131 FileWriterSync::~FileWriterSync() {} 129 FileWriterSync::~FileWriterSync() {}
132 130
133 DEFINE_TRACE(FileWriterSync) { 131 DEFINE_TRACE(FileWriterSync) {
134 FileWriterBase::trace(visitor); 132 FileWriterBase::trace(visitor);
135 } 133 }
136 134
137 } // namespace blink 135 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698