Heat oil in a large skillet over high heat. Cook onion and garlic until golden, 2 to 3 minutes. Reduce heat to medium. Add poblano chiles and cook 2 minutes longer. Stir in corn kernels and cilantro; cook until moisture has evaporated, about another 3 minutes. Season with salt. Cool thoroughly.