.SetMethod("clearRecentDocuments",
base::Bind(&Browser::ClearRecentDocuments, browser))
#if defined(OS_WIN)
- .SetMethod("addUserTasks",
- base::Bind(&Browser::AddUserTasks, browser))
+ .SetMethod("setUserTasks",
+ base::Bind(&Browser::SetUserTasks, browser))
#endif
.SetMethod("getDataPath", &App::GetDataPath)
.SetMethod("resolveProxy", &App::ResolveProxy)
};
// Add a custom task to jump list.
- void AddUserTasks(const std::vector<UserTask>& tasks);
+ void SetUserTasks(const std::vector<UserTask>& tasks);
// Set the application user model ID, called when "SetName" is called.
void SetAppUserModelID(const std::string& name);
destinations->RemoveAllDestinations();
}
-void Browser::AddUserTasks(const std::vector<UserTask>& tasks) {
+void Browser::SetUserTasks(const std::vector<UserTask>& tasks) {
CComPtr<ICustomDestinationList> destinations;
if (FAILED(destinations.CoCreateInstance(CLSID_DestinationList)))
return;