| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/unzip.h" | 5 #include "chrome/common/unzip.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "net/base/file_stream.h" | 9 #include "net/base/file_stream.h" |
| 10 #include "third_party/zlib/contrib/minizip/unzip.h" | 10 #include "third_party/zlib/contrib/minizip/unzip.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 if (i + 1 < zip_info.number_entry) { | 189 if (i + 1 < zip_info.number_entry) { |
| 190 err = unzGoToNextFile(zip_file); | 190 err = unzGoToNextFile(zip_file); |
| 191 if (err != UNZ_OK) { | 191 if (err != UNZ_OK) { |
| 192 LOG(WARNING) << "error %d in unzGoToNextFile"; | 192 LOG(WARNING) << "error %d in unzGoToNextFile"; |
| 193 ret = false; | 193 ret = false; |
| 194 break; | 194 break; |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 unzCloseCurrentFile(zip_file); | 198 unzClose(zip_file); |
| 199 return ret; | 199 return ret; |
| 200 } | 200 } |
| 201 | 201 |
| OLD | NEW |