Chromium Code Reviews| Index: chrome/browser/chrome_browser_main.cc |
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
| index 38c42ab7d7a98b9348ec8866a08de352a80b4d02..948e34f493e8d48109a3d8d57e45549f3252c5ed 100644 |
| --- a/chrome/browser/chrome_browser_main.cc |
| +++ b/chrome/browser/chrome_browser_main.cc |
| @@ -357,8 +357,16 @@ Profile* CreateProfile(const content::MainFunctionParams& parameters, |
| profile = g_browser_process->profile_manager()->GetProfile( |
| profile_path); |
| #endif |
| - if (profile) |
| + if (profile) { |
| +#if defined(OS_WIN) |
| + // Ensure the icon file for the profile has been created. |
|
Alexei Svitkine (slow)
2013/05/09 16:45:47
Does ProfileImpl::OnPrefsLoaded() not get called i
calamity
2013/05/24 08:58:48
Yep, sorry. I got confused. ProfileManager::OnProf
|
| + ProfileShortcutManager* profile_shortcut_manager = |
| + g_browser_process->profile_manager()->profile_shortcut_manager(); |
| + if (profile_shortcut_manager) |
| + profile_shortcut_manager->CreateProfileIcon(profile->GetPath()); |
| +#endif |
| return profile; |
| + } |
| #if !defined(OS_WIN) |
| // TODO(port): fix this. See comments near the definition of |