A bit too late to this thread, but wanted to throw whatever useful knowledge I had into it.
The short answer to the OP question should be: It's complicated, and varies a lot between cases. Usually you should be ok if you don't make what turns out to be polluted produce into staple foods. Poisoning is a question of dose. Some poisons accumulate in the body, and some do not.
Someone else might come along and correct me in the "long" answer, but I'll have a go. I work as a landscape architect in and around Stockholm. I've worked closely with environmental people in some projects.
The main cause of pollution in plants and trees can be expected to be the actual soil it grows in. Urban air nowadays isn't all that bad, and even back when leaded petrol was the norm, levels in berries and such weren't your worst enemy. (Inhaling the air was)
The problem comes when stuff grows on land you don't know the history of. The water table can be polluted, or the soil itself can be polluted, from industrial activities decades or even centuries ago. In the UK, mining as widespread a long time ago, and slurry ponds and other nasty stuff could have existed where there nowadays is a lovely park.
Apart from soil samples, the people I worked with used different methods to determine if pollutants where present in trees.
Core samples of trees can be collected to determine if there is a problem. Sometimes plastic bags are placed over branches and gasses emitted from the leaves tested.
Different species of plants collect different toxins. I some cases, certain species of trees have been used to extract toxins from the ground as a long term means of sanitizing larger areas.
You wouldn't beleive what kind of crap turns upp on digs either. Stuff like droplets of mercury free in the soil, other heavy metals come up in lab tests, and high levels of scary carbohydrates. Nowaday many industries are clean, but "Business as usual" was very dirty not too many years ago.
A case from Sweden: In Landskrona, almost all of Swedens car-battery recycling takes place. This is an outdoor process, and means tiny particles of lead becomes airborne. This means green cabbage grown in the area is not safe to eat. Lettuce on the other hand is fine.
Another case: In northern Sweden, (Forgot where) A kennel-owner used to let here dogs play in a nearby picturesque grass land. The litters started having increasing rates of stillborn and deformed puppies. Following an investigation into the matter, the conclusion was, that the dogs were poisoned by contact with the tall grass. The grass land had been a timber treating site that closed decades earlier.
Not to scare anyone off anything. It's not worth the worry, that someone, sometime might have spilled something where you want to harvest. I pick mushrooms on old airfields and dissused firing ranges from time to time. But I don't do it regularly. Just, try to know your surroundings and the history of the area, and don't make a habit of eating lots and lots from one site without checking, and you should be ok.