OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "extensions/utility/unpacker.h" | 5 #include "extensions/utility/unpacker.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
13 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
14 #include "base/json/json_file_value_serializer.h" | 16 #include "base/json/json_file_value_serializer.h" |
15 #include "base/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
16 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 289 |
288 void Unpacker::SetError(const std::string& error) { | 290 void Unpacker::SetError(const std::string& error) { |
289 SetUTF16Error(base::UTF8ToUTF16(error)); | 291 SetUTF16Error(base::UTF8ToUTF16(error)); |
290 } | 292 } |
291 | 293 |
292 void Unpacker::SetUTF16Error(const base::string16& error) { | 294 void Unpacker::SetUTF16Error(const base::string16& error) { |
293 error_message_ = error; | 295 error_message_ = error; |
294 } | 296 } |
295 | 297 |
296 } // namespace extensions | 298 } // namespace extensions |
OLD | NEW |