Enable setting icon for addUserTasks

This commit is contained in:
Cheng Zhao 2014-11-17 17:35:51 +08:00
parent 0db2769781
commit 0b1b0940d2
3 changed files with 12 additions and 0 deletions

View file

@ -96,6 +96,11 @@ void Browser::AddUserTasks(const std::vector<UserTask>& tasks) {
FAILED(link->SetDescription(task.description.c_str())))
return;
if (!task.icon_path.empty() &&
FAILED(link->SetIconLocation(task.icon_path.value().c_str(),
task.icon_index)))
return;
CComQIPtr<IPropertyStore> property_store = link;
if (!base::win::SetStringValueForPropertyStore(property_store, PKEY_Title,
task.title.c_str()))