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

Side by Side Diff: chrome/browser/profiles/profile_shortcut_manager_win.cc

Issue 2098713003: Moved a bunch of win-specific files to the new win folder in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months 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) 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 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/files/file_enumerator.h" 17 #include "base/files/file_enumerator.h"
18 #include "base/files/file_util.h" 18 #include "base/files/file_util.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
23 #include "base/strings/stringprintf.h" 23 #include "base/strings/stringprintf.h"
24 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
25 #include "base/win/shortcut.h" 25 #include "base/win/shortcut.h"
26 #include "chrome/browser/app_icon_win.h"
27 #include "chrome/browser/browser_process.h" 26 #include "chrome/browser/browser_process.h"
28 #include "chrome/browser/chrome_notification_types.h" 27 #include "chrome/browser/chrome_notification_types.h"
29 #include "chrome/browser/profiles/profile_attributes_entry.h" 28 #include "chrome/browser/profiles/profile_attributes_entry.h"
30 #include "chrome/browser/profiles/profile_attributes_storage.h" 29 #include "chrome/browser/profiles/profile_attributes_storage.h"
31 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 30 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
32 #include "chrome/browser/profiles/profile_manager.h" 31 #include "chrome/browser/profiles/profile_manager.h"
33 #include "chrome/browser/shell_integration_win.h" 32 #include "chrome/browser/shell_integration_win.h"
33 #include "chrome/browser/win/app_icon.h"
34 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/pref_names.h" 35 #include "chrome/common/pref_names.h"
36 #include "chrome/grit/chromium_strings.h" 36 #include "chrome/grit/chromium_strings.h"
37 #include "chrome/installer/util/browser_distribution.h" 37 #include "chrome/installer/util/browser_distribution.h"
38 #include "chrome/installer/util/product.h" 38 #include "chrome/installer/util/product.h"
39 #include "chrome/installer/util/shell_util.h" 39 #include "chrome/installer/util/shell_util.h"
40 #include "components/prefs/pref_service.h" 40 #include "components/prefs/pref_service.h"
41 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
42 #include "content/public/browser/notification_service.h" 42 #include "content/public/browser/notification_service.h"
43 #include "grit/chrome_unscaled_resources.h" 43 #include "grit/chrome_unscaled_resources.h"
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_CREATED, type); 1011 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_CREATED, type);
1012 1012
1013 Profile* profile = 1013 Profile* profile =
1014 content::Source<Profile>(source).ptr()->GetOriginalProfile(); 1014 content::Source<Profile>(source).ptr()->GetOriginalProfile();
1015 if (profile->GetPrefs()->GetInteger(prefs::kProfileIconVersion) < 1015 if (profile->GetPrefs()->GetInteger(prefs::kProfileIconVersion) <
1016 kCurrentProfileIconVersion) { 1016 kCurrentProfileIconVersion) {
1017 // Ensure the profile's icon file has been created. 1017 // Ensure the profile's icon file has been created.
1018 CreateOrUpdateProfileIcon(profile->GetPath()); 1018 CreateOrUpdateProfileIcon(profile->GetPath());
1019 } 1019 }
1020 } 1020 }
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_win_unittest.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698