diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 18:53:54 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 18:53:54 +0000 |
commit | 20c01928492aca53ee6ba6e1c84a199e889cb74d (patch) | |
tree | 826fe8495f69fdb82a1060abc32d64a74350344e /base/base_paths_win.cc | |
parent | a241d488d2b2be5a05149aa41f7920da9049983b (diff) | |
download | chromium_src-20c01928492aca53ee6ba6e1c84a199e889cb74d.zip chromium_src-20c01928492aca53ee6ba6e1c84a199e889cb74d.tar.gz chromium_src-20c01928492aca53ee6ba6e1c84a199e889cb74d.tar.bz2 |
Make acrobat work with --safe-plugins by giving it write access
to HKCU\Software\Adobe. Since we already have write access
to HKCU\Software\Macromedia, I don't believe this is making it
less secure than it actually is. We also give it write access to
AppData\Adobe.
Finally, we also need to let it do a directory listing
in c:\users\<user> and c:\users\<user>\AppData, otherwise
it crashes.
Review URL: http://codereview.chromium.org/554095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r-- | base/base_paths_win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc index bc8566c..47d7d4a 100644 --- a/base/base_paths_win.cc +++ b/base/base_paths_win.cc @@ -80,6 +80,12 @@ bool PathProviderWin(int key, FilePath* result) { return false; cur = FilePath(system_buffer); break; + case base::DIR_PROFILE: + if (FAILED(SHGetFolderPath(NULL, CSIDL_PROFILE, NULL, SHGFP_TYPE_CURRENT, + system_buffer))) + return false; + cur = FilePath(system_buffer); + break; case base::DIR_LOCAL_APP_DATA_LOW: if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { return false; |