Heat oil in a large skillet over medium-high heat. Add onion and garlic, and cook until fragrant. Stir in the tomatoes and potatoes, and cook for 7 to 10 minutes until potatoes are softened. Add the corned beef, and flake into pieces. Cook for another 10 minutes, stirring frequently. Season with salt and pepper, and serve.