Chromium Code Reviews| Index: chrome/browser/win/jumplist.cc |
| diff --git a/chrome/browser/win/jumplist.cc b/chrome/browser/win/jumplist.cc |
| index 06f28709f7b67eb2120e17e425e11c6f8da9b0ab..9214489befb5ea7c8f1419f50ca82f7598430c90 100644 |
| --- a/chrome/browser/win/jumplist.cc |
| +++ b/chrome/browser/win/jumplist.cc |
| @@ -277,6 +277,9 @@ void RunUpdateJumpList(IncognitoModePrefs::Availability incognito_availability, |
| local_recently_closed_pages = data->recently_closed_pages_; |
| } |
| + // Delete the content in JumpListIcons folder and log the results to UMA. |
| + DeleteDirectoryContentAndLogResults(icon_dir, kFileDeleteLimit); |
| + |
| // Create a new JumpList and replace the current JumpList with it. The |
| // jumplist links are updated anyway, while the jumplist icons may not as |
| // mentioned above. |
| @@ -606,13 +609,8 @@ void JumpList::DeferredRunUpdate() { |
| profile_ ? IncognitoModePrefs::GetAvailability(profile_->GetPrefs()) |
| : IncognitoModePrefs::ENABLED; |
| - // Post a task to delete the content in JumpListIcons folder and log the |
| - // results to UMA. |
| - update_jumplisticons_task_runner_->PostTask( |
| - FROM_HERE, base::Bind(&DeleteDirectoryContentAndLogResults, icon_dir_, |
| - kFileDeleteLimit)); |
| - |
| - // Post a task to update the jumplist used by the shell. |
| + // Post a task to update the jumplist in JumpListIcons folder, which consists |
| + // of 1) delete old icons, 2) create new icons, 3) notigfy the OS. |
|
Patrick Monette
2017/04/18 01:58:32
s/notigfy/notify
chengx
2017/04/18 02:13:40
Done.
|
| update_jumplisticons_task_runner_->PostTask( |
| FROM_HERE, base::Bind(&RunUpdateJumpList, incognito_availability, app_id_, |
| icon_dir_, base::RetainedRef(jumplist_data_))); |