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 <dwmapi.h> | 5 #include <dwmapi.h> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "apps/pref_names.h" | 8 #include "apps/pref_names.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 shortcut_properties.set_working_dir(chrome_exe.DirName()); | 217 shortcut_properties.set_working_dir(chrome_exe.DirName()); |
218 shortcut_properties.set_arguments(wide_switches); | 218 shortcut_properties.set_arguments(wide_switches); |
219 shortcut_properties.set_description(app_list_shortcut_name); | 219 shortcut_properties.set_description(app_list_shortcut_name); |
220 shortcut_properties.set_icon(chrome_exe, GetAppListIconIndex()); | 220 shortcut_properties.set_icon(chrome_exe, GetAppListIconIndex()); |
221 shortcut_properties.set_app_id(app_model_id); | 221 shortcut_properties.set_app_id(app_model_id); |
222 | 222 |
223 for (size_t i = 0; i < shortcut_paths.size(); ++i) { | 223 for (size_t i = 0; i < shortcut_paths.size(); ++i) { |
224 base::FilePath shortcut_file = | 224 base::FilePath shortcut_file = |
225 shortcut_paths[i].Append(app_list_shortcut_name). | 225 shortcut_paths[i].Append(app_list_shortcut_name). |
226 AddExtension(installer::kLnkExt); | 226 AddExtension(installer::kLnkExt); |
227 if (!file_util::PathExists(shortcut_file.DirName()) && | 227 if (!base::PathExists(shortcut_file.DirName()) && |
228 !file_util::CreateDirectory(shortcut_file.DirName())) { | 228 !file_util::CreateDirectory(shortcut_file.DirName())) { |
229 NOTREACHED(); | 229 NOTREACHED(); |
230 return; | 230 return; |
231 } | 231 } |
232 success = success && base::win::CreateOrUpdateShortcutLink( | 232 success = success && base::win::CreateOrUpdateShortcutLink( |
233 shortcut_file, shortcut_properties, | 233 shortcut_file, shortcut_properties, |
234 base::win::SHORTCUT_CREATE_ALWAYS); | 234 base::win::SHORTCUT_CREATE_ALWAYS); |
235 } | 235 } |
236 | 236 |
237 if (success && pin_to_taskbar) { | 237 if (success && pin_to_taskbar) { |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 | 975 |
976 } // namespace | 976 } // namespace |
977 | 977 |
978 namespace chrome { | 978 namespace chrome { |
979 | 979 |
980 AppListService* GetAppListServiceWin() { | 980 AppListService* GetAppListServiceWin() { |
981 return AppListController::GetInstance(); | 981 return AppListController::GetInstance(); |
982 } | 982 } |
983 | 983 |
984 } // namespace chrome | 984 } // namespace chrome |
OLD | NEW |