Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl.cc | 
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc | 
| index e2b625d35a43799725fc2829675db6e7c1524346..bad36c43280db9b3c4f6dcfc655be88668b87c89 100644 | 
| --- a/chrome/browser/profiles/profile_impl.cc | 
| +++ b/chrome/browser/profiles/profile_impl.cc | 
| @@ -749,6 +749,16 @@ void ProfileImpl::OnPrefsLoaded(bool success) { | 
| // TODO(sky): remove this in a couple of releases (m28ish). | 
| prefs_->SetBoolean(prefs::kSessionExitedCleanly, true); | 
| +#if defined(OS_WIN) | 
| + // Ensure the profile's icon file has been created. | 
| + if (!prefs_->GetBoolean(prefs::kProfileIconCreated)) { | 
| + ProfileShortcutManager* profile_shortcut_manager = | 
| + g_browser_process->profile_manager()->profile_shortcut_manager(); | 
| + profile_shortcut_manager->CreateProfileIcon(GetPath()); | 
| 
 
Alexei Svitkine (slow)
2013/05/03 17:20:47
Please check that profile_shorcut_manager is not N
 
gab
2013/05/07 12:38:39
So this means that profile taskbar icons (pinned o
 
calamity
2013/05/08 08:15:42
Hmm. I hadn't realized that this could be a proble
 
gab
2013/05/08 13:01:08
Even if we remove app_list from the condition, I'm
 
Alexei Svitkine (slow)
2013/05/08 15:12:04
I wrote a CL to implement this in: https://coderev
 
Alexei Svitkine (slow)
2013/05/08 15:12:04
We could make CreateOrUpdateShortcutsForProfileAtP
 
calamity
2013/05/09 06:12:16
There are only a few callers. I'll just set it to
 
gab
2013/05/09 13:43:56
I see, so as it is now we only use this icon for s
 
gab
2013/05/09 13:43:56
I'm not sure what you mean here, if you always cre
 
 | 
| + prefs_->SetBoolean(prefs::kProfileIconCreated, true); | 
| 
 
Alexei Svitkine (slow)
2013/05/03 17:20:47
I think this should be set in a callback as a resu
 
calamity
2013/05/08 08:15:42
We won't need this pref if we are checking the pro
 
gab
2013/05/08 13:01:08
Haven't looked deeply in the pref part of this, bu
 
calamity
2013/05/09 06:12:16
The pref is a "on first run past this change" pref
 
 | 
| + } | 
| +#endif | 
| + | 
| ProfileDependencyManager::GetInstance()->CreateProfileServices(this, false); | 
| DCHECK(!net_pref_observer_.get()); |