Cleanup in task management and threading in FilebrowseHandler.

CreateNewFolder should be on file thread.
Delete TaskProxy on ui thread where applicable.
Use scoped_refptr for TaskProxy lifetime management.
Deprecate use of current_task_ as much as possible by using function args instead.
Fix a bug where certain actions cannot be performed running Cros chrome on linux due to over-zealous security. This includes downloads, deletes and copies.
Filter out .crdownload files.
Fix lint errors.

BUG=chromium-os:8130
TEST=Create a folder using advanced filesystem Save As dialog in debug mode, threading asserts should no longer fire. Download a large non-dangerous file, .crdownload file should no longer appear.

Review URL: http://codereview.chromium.org/6246118

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74524 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed