Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: chrome/browser/user_data_manager.cc

Issue 399045: Set prop app id for chromium/application shortcut. (Closed)
Patch Set: more for hbono Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698