i have a toshiba a300 satellite laptop and this is my problem
when i plug-in my ac adapter its always rebooting itself but when i used batter its normal operation
Boot into safe mode (battery) and select Disable Automatic Restart.
Shutdown, then Startup with AC Power & see what happens.
You may have Possibly a defective AC Adaptor.