I faced a issue recently when i tried to install a plugin using plugin installer. It was asking for ftp details which sucks!. So i tried options like changing file permissions etc, but nothing helped. With a quick research in google i found the option
which should be added in wp-config.php. This line of code disables the FTP window and allows the normal flow of adding plugins.