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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 14137032: Create profile .ico file on profile creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
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..ae5100f1221053e0cfc3047699ef0e7fbcb29694 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -749,6 +749,14 @@ 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.
+ ProfileShortcutManager* profile_shortcut_manager =
Alexei Svitkine (slow) 2013/05/09 16:45:47 I still think we should only do this if the pref i
calamity 2013/05/24 08:58:48 Done.
+ g_browser_process->profile_manager()->profile_shortcut_manager();
+ if (profile_shortcut_manager)
+ profile_shortcut_manager->CreateProfileIcon(GetPath());
+#endif
+
ProfileDependencyManager::GetInstance()->CreateProfileServices(this, false);
DCHECK(!net_pref_observer_.get());

Powered by Google App Engine
This is Rietveld 408576698