It's just a windshield molding. It's not a seal. It keeps dust and debris out of the channel where the actual windshield sealing is, and helps prevent wind noise.
RepairPal Certified shops can diagnose and repair your 2007 Chevrolet Cobalt. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.