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 "chrome/browser/web_applications/web_app_win.h" | 5 #include "chrome/browser/web_applications/web_app_win.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 | 8 |
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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 if (ShellUtil::GetShortcutPath( | 544 if (ShellUtil::GetShortcutPath( |
545 ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_APPS_DIR, | 545 ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_APPS_DIR, |
546 BrowserDistribution::GetDistribution(), | 546 BrowserDistribution::GetDistribution(), |
547 ShellUtil::CURRENT_USER, | 547 ShellUtil::CURRENT_USER, |
548 &chrome_apps_dir)) { | 548 &chrome_apps_dir)) { |
549 if (base::IsDirectoryEmpty(chrome_apps_dir)) | 549 if (base::IsDirectoryEmpty(chrome_apps_dir)) |
550 base::DeleteFile(chrome_apps_dir, false); | 550 base::DeleteFile(chrome_apps_dir, false); |
551 } | 551 } |
552 } | 552 } |
553 | 553 |
| 554 void UpdateShortcutsForAllAppsForProfile(const base::FilePath& profile_path, |
| 555 const std::set<std::string>& app_ids) { |
| 556 } |
| 557 |
554 std::vector<base::FilePath> GetShortcutPaths( | 558 std::vector<base::FilePath> GetShortcutPaths( |
555 const ShortcutLocations& creation_locations) { | 559 const ShortcutLocations& creation_locations) { |
556 // Shortcut paths under which to create shortcuts. | 560 // Shortcut paths under which to create shortcuts. |
557 std::vector<base::FilePath> shortcut_paths; | 561 std::vector<base::FilePath> shortcut_paths; |
558 // Locations to add to shortcut_paths. | 562 // Locations to add to shortcut_paths. |
559 struct { | 563 struct { |
560 bool use_this_location; | 564 bool use_this_location; |
561 ShellUtil::ShortcutLocation location_id; | 565 ShellUtil::ShortcutLocation location_id; |
562 } locations[] = { | 566 } locations[] = { |
563 { | 567 { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 | 614 |
611 } // namespace internals | 615 } // namespace internals |
612 | 616 |
613 void UpdateShortcutForTabContents(content::WebContents* web_contents) { | 617 void UpdateShortcutForTabContents(content::WebContents* web_contents) { |
614 // UpdateShortcutWorker will delete itself when it's done. | 618 // UpdateShortcutWorker will delete itself when it's done. |
615 UpdateShortcutWorker* worker = new UpdateShortcutWorker(web_contents); | 619 UpdateShortcutWorker* worker = new UpdateShortcutWorker(web_contents); |
616 worker->Run(); | 620 worker->Run(); |
617 } | 621 } |
618 | 622 |
619 } // namespace web_app | 623 } // namespace web_app |
OLD | NEW |