| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/chrome_paths.h" | 5 #include "chrome/common/chrome_paths.h" |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 cur = cur.Append(FILE_PATH_LITERAL("wallpaper_thumbnails")); | 426 cur = cur.Append(FILE_PATH_LITERAL("wallpaper_thumbnails")); |
| 427 break; | 427 break; |
| 428 case chrome::DIR_CHROMEOS_CUSTOM_WALLPAPERS: | 428 case chrome::DIR_CHROMEOS_CUSTOM_WALLPAPERS: |
| 429 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) | 429 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) |
| 430 return false; | 430 return false; |
| 431 cur = cur.Append(FILE_PATH_LITERAL("custom_wallpapers")); | 431 cur = cur.Append(FILE_PATH_LITERAL("custom_wallpapers")); |
| 432 break; | 432 break; |
| 433 case chrome::DIR_CHROMEOS_PPD_CACHE: | 433 case chrome::DIR_CHROMEOS_PPD_CACHE: |
| 434 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) | 434 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) |
| 435 return false; | 435 return false; |
| 436 cur = cur.Append(FILE_PATH_LITERAL("ppd_cache")); | 436 cur = cur.Append(FILE_PATH_LITERAL("PpdCache")); |
| 437 create_dir = true; |
| 437 break; | 438 break; |
| 438 #endif | 439 #endif |
| 439 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 440 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 440 #if defined(OS_LINUX) | 441 #if defined(OS_LINUX) |
| 441 case chrome::DIR_SUPERVISED_USERS_DEFAULT_APPS: | 442 case chrome::DIR_SUPERVISED_USERS_DEFAULT_APPS: |
| 442 if (!PathService::Get(chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, &cur)) | 443 if (!PathService::Get(chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, &cur)) |
| 443 return false; | 444 return false; |
| 444 cur = cur.Append(FILE_PATH_LITERAL("managed_users")); | 445 cur = cur.Append(FILE_PATH_LITERAL("managed_users")); |
| 445 break; | 446 break; |
| 446 #endif | 447 #endif |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 | 612 |
| 612 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { | 613 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { |
| 613 g_invalid_specified_user_data_dir.Get() = user_data_dir; | 614 g_invalid_specified_user_data_dir.Get() = user_data_dir; |
| 614 } | 615 } |
| 615 | 616 |
| 616 const base::FilePath& GetInvalidSpecifiedUserDataDir() { | 617 const base::FilePath& GetInvalidSpecifiedUserDataDir() { |
| 617 return g_invalid_specified_user_data_dir.Get(); | 618 return g_invalid_specified_user_data_dir.Get(); |
| 618 } | 619 } |
| 619 | 620 |
| 620 } // namespace chrome | 621 } // namespace chrome |
| OLD | NEW |