| Index: chrome/browser/profiles/profile_shortcut_manager_win.cc
|
| diff --git a/chrome/browser/profiles/profile_shortcut_manager_win.cc b/chrome/browser/profiles/profile_shortcut_manager_win.cc
|
| index 1b3fffd10eff8aa9319f0aae2e89fa3365a8b7e2..d65cec066e6490bcd3d3e862b35f85cf627b4761 100644
|
| --- a/chrome/browser/profiles/profile_shortcut_manager_win.cc
|
| +++ b/chrome/browser/profiles/profile_shortcut_manager_win.cc
|
| @@ -1008,20 +1008,13 @@ void ProfileShortcutManagerWin::Observe(
|
| int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| - switch (type) {
|
| - // This notification is triggered when a profile is loaded.
|
| - case chrome::NOTIFICATION_PROFILE_CREATED: {
|
| - Profile* profile =
|
| - content::Source<Profile>(source).ptr()->GetOriginalProfile();
|
| - if (profile->GetPrefs()->GetInteger(prefs::kProfileIconVersion) <
|
| - kCurrentProfileIconVersion) {
|
| - // Ensure the profile's icon file has been created.
|
| - CreateOrUpdateProfileIcon(profile->GetPath());
|
| - }
|
| - break;
|
| - }
|
| - default:
|
| - NOTREACHED();
|
| - break;
|
| + DCHECK_EQ(chrome::NOTIFICATION_PROFILE_CREATED, type);
|
| +
|
| + Profile* profile =
|
| + content::Source<Profile>(source).ptr()->GetOriginalProfile();
|
| + if (profile->GetPrefs()->GetInteger(prefs::kProfileIconVersion) <
|
| + kCurrentProfileIconVersion) {
|
| + // Ensure the profile's icon file has been created.
|
| + CreateOrUpdateProfileIcon(profile->GetPath());
|
| }
|
| }
|
|
|