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

Side by Side Diff: chrome/browser/first_run/first_run_win.cc

Issue 8502033: Add Windows desktop shortcut for multiple profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/profiles/profile_info_cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/first_run/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include <shlobj.h> 7 #include <shlobj.h>
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 FilePath chrome_exe; 101 FilePath chrome_exe;
102 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) 102 if (!PathService::Get(base::FILE_EXE, &chrome_exe))
103 return false; 103 return false;
104 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); 104 BrowserDistribution* dist = BrowserDistribution::GetDistribution();
105 if (!dist) 105 if (!dist)
106 return false; 106 return false;
107 return ShellUtil::CreateChromeDesktopShortcut( 107 return ShellUtil::CreateChromeDesktopShortcut(
108 dist, 108 dist,
109 chrome_exe.value(), 109 chrome_exe.value(),
110 dist->GetAppDescription(), 110 dist->GetAppDescription(),
111 L"",
112 L"",
111 ShellUtil::CURRENT_USER, 113 ShellUtil::CURRENT_USER,
112 false, 114 false,
113 true); // create if doesn't exist. 115 true); // create if doesn't exist.
114 } 116 }
115 117
116 // Creates the quick launch shortcut to chrome for the current user. Returns 118 // Creates the quick launch shortcut to chrome for the current user. Returns
117 // false if it fails. It will overwrite the shortcut if it exists. 119 // false if it fails. It will overwrite the shortcut if it exists.
118 bool CreateChromeQuickLaunchShortcut() { 120 bool CreateChromeQuickLaunchShortcut() {
119 FilePath chrome_exe; 121 FilePath chrome_exe;
120 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) 122 if (!PathService::Get(base::FILE_EXE, &chrome_exe))
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 parent_window, 409 parent_window,
408 static_cast<uint16>(items_to_import), 410 static_cast<uint16>(items_to_import),
409 importer_host, 411 importer_host,
410 &importer_observer, 412 &importer_observer,
411 importer_list->GetSourceProfileForImporterType(importer_type), 413 importer_list->GetSourceProfileForImporterType(importer_type),
412 profile, 414 profile,
413 true); 415 true);
414 importer_observer.RunLoop(); 416 importer_observer.RunLoop();
415 return importer_observer.import_result(); 417 return importer_observer.import_result();
416 } 418 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/profiles/profile_info_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698