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

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: use important_file_handler for icon file creation 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..4e5e1fab331f49377e2c8b5299ef892de035554a 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -749,6 +749,13 @@ 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 =
+ g_browser_process->profile_manager()->profile_shortcut_manager();
+ profile_shortcut_manager->CreateProfileIcon(GetPath());
gab 2013/05/08 13:01:08 Why call this from here when it was already called
calamity 2013/05/09 06:12:16 chrome_browser_main only runs for the first loaded
+#endif
+
ProfileDependencyManager::GetInstance()->CreateProfileServices(this, false);
DCHECK(!net_pref_observer_.get());

Powered by Google App Engine
This is Rietveld 408576698