| 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..ab2885ec611d93f7efd010465670a08d5bee0ed0 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -357,8 +357,15 @@ 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.
|
| + ProfileShortcutManager* profile_shortcut_manager =
|
| + g_browser_process->profile_manager()->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
|
|
|