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/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/file_util.h" | 19 #include "base/file_util.h" |
20 #include "base/files/file_path.h" | 20 #include "base/files/file_path.h" |
21 #include "base/lazy_instance.h" | 21 #include "base/lazy_instance.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/md5.h" | 23 #include "base/md5.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "base/memory/scoped_vector.h" | 25 #include "base/memory/scoped_vector.h" |
26 #include "base/path_service.h" | 26 #include "base/path_service.h" |
27 #include "base/string16.h" | 27 #include "base/string16.h" |
28 #include "base/string_split.h" | |
29 #include "base/string_util.h" | 28 #include "base/string_util.h" |
30 #include "base/strings/string_number_conversions.h" | 29 #include "base/strings/string_number_conversions.h" |
| 30 #include "base/strings/string_split.h" |
31 #include "base/utf_string_conversions.h" | 31 #include "base/utf_string_conversions.h" |
32 #include "base/values.h" | 32 #include "base/values.h" |
33 #include "base/win/registry.h" | 33 #include "base/win/registry.h" |
34 #include "base/win/scoped_co_mem.h" | 34 #include "base/win/scoped_co_mem.h" |
35 #include "base/win/scoped_comptr.h" | 35 #include "base/win/scoped_comptr.h" |
36 #include "base/win/shortcut.h" | 36 #include "base/win/shortcut.h" |
37 #include "base/win/win_util.h" | 37 #include "base/win/win_util.h" |
38 #include "base/win/windows_version.h" | 38 #include "base/win/windows_version.h" |
39 #include "chrome/common/chrome_constants.h" | 39 #include "chrome/common/chrome_constants.h" |
40 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
(...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2000 // are any left...). | 2000 // are any left...). |
2001 if (free_bits >= 8 && next_byte_index < size) { | 2001 if (free_bits >= 8 && next_byte_index < size) { |
2002 free_bits -= 8; | 2002 free_bits -= 8; |
2003 bit_stream += bytes[next_byte_index++] << free_bits; | 2003 bit_stream += bytes[next_byte_index++] << free_bits; |
2004 } | 2004 } |
2005 } | 2005 } |
2006 | 2006 |
2007 DCHECK_EQ(ret.length(), encoded_length); | 2007 DCHECK_EQ(ret.length(), encoded_length); |
2008 return ret; | 2008 return ret; |
2009 } | 2009 } |
OLD | NEW |