Grant permissions to other profile files on demand.
commitb07d623e7729e334e1fa0550f8038e73084a2d2a
authorTomasz Mikolajewski <mtomasz@chromium.org>
Wed, 11 Mar 2015 09:52:53 +0000 (11 18:52 +0900)
committerTomasz Mikolajewski <mtomasz@chromium.org>
Wed, 11 Mar 2015 09:54:15 +0000 (11 09:54 +0000)
tree7b8a6300145e1aeb5fe5c1b4457434aeaf8bdb03
parent446a405c524d369155368d339b4ae29c428d6b22
Grant permissions to other profile files on demand.

Previously, Files app was being granted permissions to all volumes even if
not all of them were requested or needed.

This is the first patch of the larger effort in order to grant permissions to
only what's needed. This CL grants pemissions to other-profile files before
performing a paste operation for that files.

TEST=Tested manually with multiple profiles.
BUG=323422
R=fukino@chromium.org, hirono@chromium.org, isherman@chromium.org, kinaba@chromium.org

Review URL: https://codereview.chromium.org/993873002

Cr-Commit-Position: refs/heads/master@{#320063}
chrome/browser/chromeos/extensions/file_manager/event_router.cc
chrome/browser/chromeos/extensions/file_manager/event_router.h
chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
chrome/common/extensions/api/file_manager_private.idl
extensions/browser/extension_function_histogram_value.h
third_party/closure_compiler/externs/file_manager_private.js
tools/metrics/histograms/histograms.xml
ui/file_manager/file_manager/foreground/js/file_transfer_controller.js