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

Unified Diff: chrome/browser/chrome_browser_main.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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | chrome/browser/profiles/profile_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | chrome/browser/profiles/profile_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698