OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/user_data_manager.h" | 7 #include "chrome/browser/user_data_manager.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 profile_name); | 250 profile_name); |
251 shortcut_name.append(L".lnk"); | 251 shortcut_name.append(L".lnk"); |
252 file_util::AppendToPath(&shortcut_path, shortcut_name); | 252 file_util::AppendToPath(&shortcut_path, shortcut_name); |
253 | 253 |
254 return file_util::CreateShortcutLink(cmd.c_str(), | 254 return file_util::CreateShortcutLink(cmd.c_str(), |
255 shortcut_path.c_str(), | 255 shortcut_path.c_str(), |
256 exe_folder.c_str(), | 256 exe_folder.c_str(), |
257 args.c_str(), | 257 args.c_str(), |
258 NULL, | 258 NULL, |
259 exe_path.c_str(), | 259 exe_path.c_str(), |
260 0); | 260 0, |
| 261 chrome::kBrowserAppId); |
261 #else | 262 #else |
262 // TODO(port): should probably use freedesktop.org standard for desktop files. | 263 // TODO(port): should probably use freedesktop.org standard for desktop files. |
263 NOTIMPLEMENTED(); | 264 NOTIMPLEMENTED(); |
264 return false; | 265 return false; |
265 #endif | 266 #endif |
266 } | 267 } |
267 | 268 |
268 GetProfilesHelper::GetProfilesHelper(Delegate* delegate) | 269 GetProfilesHelper::GetProfilesHelper(Delegate* delegate) |
269 : delegate_(delegate), | 270 : delegate_(delegate), |
270 message_loop_(NULL) { | 271 message_loop_(NULL) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 &GetProfilesHelper::InvokeDelegate, | 310 &GetProfilesHelper::InvokeDelegate, |
310 profiles.release())); | 311 profiles.release())); |
311 } | 312 } |
312 | 313 |
313 void GetProfilesHelper::InvokeDelegate(std::vector<std::wstring>* profiles) { | 314 void GetProfilesHelper::InvokeDelegate(std::vector<std::wstring>* profiles) { |
314 scoped_ptr< std::vector<std::wstring> > udd_profiles(profiles); | 315 scoped_ptr< std::vector<std::wstring> > udd_profiles(profiles); |
315 // If the delegate is gone by now, no need to do any work. | 316 // If the delegate is gone by now, no need to do any work. |
316 if (delegate_) | 317 if (delegate_) |
317 delegate_->OnGetProfilesDone(*udd_profiles.get()); | 318 delegate_->OnGetProfilesDone(*udd_profiles.get()); |
318 } | 319 } |
OLD | NEW |