a friend mines chainsaw was curving to the left when cutting. I sharpened the blade with my electric sharpener and it is still cutting the same. Could it be the bar is the problem?
Bar could be bent/twisted/damaged....and also if they never flipped the bar after sharpening/replacing the chain then you could be wearing one side down more than the other. See if you can stand it on the edge of the bar on a table. If it falls over it's not even.
Common is that one side of the chain is taking bigger bites. As said it's most likely from they have a strong side when they sharpen and get that side sharper or one side the rakers are lower allowing for a bigger chip. More cut on one side it will curve to that side and even stop the bars Foward movement at times cause it's curving so bad