Fix attaching files from Drive.

When Drive is disabled while attaching multiple files to gmail on Drive, the dialog stops to show up. This is because the path passed to SelectFileDialogExtension is not available. Moreover, the fallback which is equal to last used path is not available either, since it also points to Drive.

This patch resolves this issue by allowing failures in resolving these urls. If they fail to resolve, then empty strings are passed to Files app, and Files app will use its default path.

TEST=Tested manually by attaching multiple files from Drive on gmail.com.
BUG=339861
R=kinaba@chromium.org, sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249256 0039d316-1c4b-4281-b951-d872f2087c98
Add the viewer toolbar to the PDF extension.

BUG=303491
R=arv@chromium.org, boliu@chromium.org, ganetsky@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247578

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249257 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 249256
SVN changes up to revision 249257
Modify CopyFileUnsafe() on OSX to stop copying ACL.

This makes CopyFile() and CopyDirectory() behavior consistent on OSX to the
other platforms. Stop copying the ACL on the files copied. This means the
destination file will inherit from the umask or inherited ACL from the
destination parent directory, which is sane.

This matches what is done on linux. This will fixes unit tests that copy files
from a read only directory into a temporary directory so they can be safely be
modified, otherwise the file acl would have to be modified everytime. While
base_unittests didn't care, it blew up disk cache tests in net_unittests.

R=thakis@chromium.org
BUG=116251,335420

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249258 0039d316-1c4b-4281-b951-d872f2087c98
[Ozone] Fix ozone build due to missing EVENTS_EXPORT in EventDeviceInfo

TBR=spang@chromium.org
NOTRY=true

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249259 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 249259