Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel.kimmerlin@thomsonreuters.com committed Dec 7, 2021
1 parent 80d7b9a commit 02ea9b6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions shell/app/electron_main_delegate.cc
Expand Up @@ -138,28 +138,20 @@ bool ElectronPathProvider(int key, base::FilePath* result) {
cur = cur.Append(base::FilePath::FromUTF8Unsafe("Dictionaries"));
create_dir = true;
break;

case DIR_BROWSER_DATA: {
// By default and for backward, equivalent to DIR_USER_DATA
if (!base::PathService::Get(chrome::DIR_USER_DATA, &cur))
return false;
create_dir = true;
break;
}
int parent_key = base::DIR_ROAMING_APP_DATA;
case DIR_CACHE:
if (!base::PathService::Get(DIR_APP_DATA, &cur))
return false;
create_dir = true;
break;
#endif
case DIR_USER_CACHE: {
#if defined(OS_POSIX)
int parent_key = base::DIR_CACHE;
#else
// On Windows, there's no OS-level centralized location for caches, so
// store the cache in the app data directory.
int parent_key = base::DIR_APP_DATA;
int parent_key = base::DIR_ROAMING_APP_DATA;
#endif
if (!base::PathService::Get(parent_key, &cur))
return false;
Expand Down

0 comments on commit 02ea9b6

Please sign in to comment.