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/profiles/profile_shortcut_manager_win.h" | 5 #include "chrome/browser/profiles/profile_shortcut_manager_win.h" |
6 | 6 |
7 #include <shlobj.h> // For SHChangeNotify(). | 7 #include <shlobj.h> // For SHChangeNotify(). |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/string16.h" | 16 #include "base/string16.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/win/shortcut.h" | 20 #include "base/win/shortcut.h" |
21 #include "chrome/browser/app_icon_win.h" | 21 #include "chrome/browser/app_icon_win.h" |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 23 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
24 #include "chrome/browser/profiles/profile_info_util.h" | 24 #include "chrome/browser/profiles/profile_info_util.h" |
25 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
26 #include "chrome/browser/shell_integration.h" | 26 #include "chrome/browser/shell_integration.h" |
27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/installer/util/browser_distribution.h" | 28 #include "chrome/installer/util/browser_distribution.h" |
29 #include "chrome/installer/util/product.h" | 29 #include "chrome/installer/util/product.h" |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 BrowserThread::PostTask( | 700 BrowserThread::PostTask( |
701 BrowserThread::FILE, FROM_HERE, | 701 BrowserThread::FILE, FROM_HERE, |
702 base::Bind(&CreateOrUpdateDesktopShortcutsForProfile, profile_path, | 702 base::Bind(&CreateOrUpdateDesktopShortcutsForProfile, profile_path, |
703 old_shortcut_appended_name, new_shortcut_appended_name, | 703 old_shortcut_appended_name, new_shortcut_appended_name, |
704 avatar_bitmap_copy_1x, avatar_bitmap_copy_2x, create_mode, | 704 avatar_bitmap_copy_1x, avatar_bitmap_copy_2x, create_mode, |
705 action)); | 705 action)); |
706 | 706 |
707 cache->SetShortcutNameOfProfileAtIndex(profile_index, | 707 cache->SetShortcutNameOfProfileAtIndex(profile_index, |
708 new_shortcut_appended_name); | 708 new_shortcut_appended_name); |
709 } | 709 } |
OLD | NEW |