I have seen two types, one being a chrome type finish on plastic trim. The other more widely used is a polished aluminum with a clear plastic coating. The problem with this is that moisture gets between the coating and the ally and the ally oxidises . This is where you get that chalky finish that will drive you nuts trying to deal with. Basically you cant unless you remove the plastic coating. It is not something I would do. I have seen one car that has had this done and it looked hideous. Getting that level of mirror finish is a real pain. Let alone trying it when it is on the car surrounded by black plastic, so you need to get the polish off there too.
I am surprised the manufacturers have not addressed this over the decades.
Sorry, just noticed this was roof rails not the window trim....