Barrie police say they received information on Tuesday about a man "dealing large amounts of drugs in the downtown area."
A day later, a man, who matched the description of the drug suspect, approached officers at the local out-of-the-cold program and asked for transportation.
The man allegedly gave a false name, but police soon determined his legal identity. He was wanted on outstanding charges.
Police also learned the man was in possession of cocaine that had a street value of more than $10,000.
A 22-year-old man faces a half-dozen criminal counts including obstructing police, possession of cocaine for the purpose of trafficking and possession of cocaine.
None of the charges have been proven in court.