| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/file_path.h" | 16 #include "base/file_path.h" |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/registry.h" | 19 #include "base/registry.h" |
| 20 #include "base/scoped_ptr.h" | 20 #include "base/scoped_ptr.h" |
| 21 #include "base/stl_util-inl.h" | 21 #include "base/stl_util-inl.h" |
| 22 #include "base/string_number_conversions.h" | 22 #include "base/string_number_conversions.h" |
| 23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
| 24 #include "base/utf_string_conversions.h" |
| 24 #include "base/win_util.h" | 25 #include "base/win_util.h" |
| 25 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
| 26 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome/installer/util/browser_distribution.h" | 28 #include "chrome/installer/util/browser_distribution.h" |
| 28 #include "chrome/installer/util/install_util.h" | 29 #include "chrome/installer/util/install_util.h" |
| 29 #include "chrome/installer/util/master_preferences.h" | 30 #include "chrome/installer/util/master_preferences.h" |
| 30 | 31 |
| 31 #include "installer_util_strings.h" | 32 #include "installer_util_strings.h" |
| 32 | 33 |
| 33 namespace { | 34 namespace { |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 chrome_exe.c_str(), // target | 794 chrome_exe.c_str(), // target |
| 794 shortcut.c_str(), // shortcut | 795 shortcut.c_str(), // shortcut |
| 795 chrome_path.c_str(), // working dir | 796 chrome_path.c_str(), // working dir |
| 796 NULL, // arguments | 797 NULL, // arguments |
| 797 description.c_str(), // description | 798 description.c_str(), // description |
| 798 chrome_exe.c_str(), // icon file | 799 chrome_exe.c_str(), // icon file |
| 799 icon_index, // icon index | 800 icon_index, // icon index |
| 800 dist->GetBrowserAppId().c_str()); // app id | 801 dist->GetBrowserAppId().c_str()); // app id |
| 801 } | 802 } |
| 802 } | 803 } |
| OLD | NEW |