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 // This file defines functions that integrate Chrome in Windows shell. These | 5 // This file defines functions that integrate Chrome in Windows shell. These |
6 // functions can be used by Chrome as well as Chrome installer. All of the | 6 // functions can be used by Chrome as well as Chrome installer. All of the |
7 // work is done by the local functions defined in anonymous namespace in | 7 // work is done by the local functions defined in anonymous namespace in |
8 // this class. | 8 // this class. |
9 | 9 |
10 #include "chrome/installer/util/shell_util.h" | 10 #include "chrome/installer/util/shell_util.h" |
11 | 11 |
12 #include <windows.h> | 12 #include <windows.h> |
13 #include <shlobj.h> | 13 #include <shlobj.h> |
14 | 14 |
15 #include <limits> | 15 #include <limits> |
16 #include <string> | 16 #include <string> |
17 | 17 |
18 #include "base/bind.h" | 18 #include "base/bind.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/file_util.h" | |
21 #include "base/files/file_enumerator.h" | 20 #include "base/files/file_enumerator.h" |
22 #include "base/files/file_path.h" | 21 #include "base/files/file_path.h" |
| 22 #include "base/files/file_util.h" |
23 #include "base/lazy_instance.h" | 23 #include "base/lazy_instance.h" |
24 #include "base/logging.h" | 24 #include "base/logging.h" |
25 #include "base/md5.h" | 25 #include "base/md5.h" |
26 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
27 #include "base/memory/scoped_vector.h" | 27 #include "base/memory/scoped_vector.h" |
28 #include "base/path_service.h" | 28 #include "base/path_service.h" |
29 #include "base/strings/string16.h" | 29 #include "base/strings/string16.h" |
30 #include "base/strings/string_number_conversions.h" | 30 #include "base/strings/string_number_conversions.h" |
31 #include "base/strings/string_split.h" | 31 #include "base/strings/string_split.h" |
32 #include "base/strings/string_util.h" | 32 #include "base/strings/string_util.h" |
(...skipping 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 // are any left...). | 2287 // are any left...). |
2288 if (free_bits >= 8 && next_byte_index < size) { | 2288 if (free_bits >= 8 && next_byte_index < size) { |
2289 free_bits -= 8; | 2289 free_bits -= 8; |
2290 bit_stream += bytes[next_byte_index++] << free_bits; | 2290 bit_stream += bytes[next_byte_index++] << free_bits; |
2291 } | 2291 } |
2292 } | 2292 } |
2293 | 2293 |
2294 DCHECK_EQ(ret.length(), encoded_length); | 2294 DCHECK_EQ(ret.length(), encoded_length); |
2295 return ret; | 2295 return ret; |
2296 } | 2296 } |
OLD | NEW |