| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #elif defined(OS_WIN) | 48 #elif defined(OS_WIN) |
| 49 FILE_PATH_LITERAL("gcswf32.dll"); | 49 FILE_PATH_LITERAL("gcswf32.dll"); |
| 50 #else // OS_LINUX, etc. | 50 #else // OS_LINUX, etc. |
| 51 FILE_PATH_LITERAL("libgcflashplayer.so"); | 51 FILE_PATH_LITERAL("libgcflashplayer.so"); |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 // The Pepper Flash plugins are in a directory with this name. | 54 // The Pepper Flash plugins are in a directory with this name. |
| 55 const base::FilePath::CharType kPepperFlashBaseDirectory[] = | 55 const base::FilePath::CharType kPepperFlashBaseDirectory[] = |
| 56 FILE_PATH_LITERAL("PepperFlash"); | 56 FILE_PATH_LITERAL("PepperFlash"); |
| 57 | 57 |
| 58 #if defined(OS_WIN) | 58 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 59 const base::FilePath::CharType kPepperFlashSystemBaseDirectory[] = | |
| 60 FILE_PATH_LITERAL("Macromed\\Flash"); | |
| 61 #elif defined(OS_MACOSX) && !defined(OS_IOS) | |
| 62 const base::FilePath::CharType kPepperFlashSystemBaseDirectory[] = | 59 const base::FilePath::CharType kPepperFlashSystemBaseDirectory[] = |
| 63 FILE_PATH_LITERAL("Internet Plug-Ins/PepperFlashPlayer"); | 60 FILE_PATH_LITERAL("Internet Plug-Ins/PepperFlashPlayer"); |
| 64 #endif | 61 #endif |
| 65 | 62 |
| 66 const base::FilePath::CharType kInternalNaClPluginFileName[] = | 63 const base::FilePath::CharType kInternalNaClPluginFileName[] = |
| 67 FILE_PATH_LITERAL("internal-nacl-plugin"); | 64 FILE_PATH_LITERAL("internal-nacl-plugin"); |
| 68 | 65 |
| 69 #if defined(OS_LINUX) | 66 #if defined(OS_LINUX) |
| 70 // The path to the external extension <id>.json files. | 67 // The path to the external extension <id>.json files. |
| 71 // /usr/share seems like a good choice, see: http://www.pathname.com/fhs/ | 68 // /usr/share seems like a good choice, see: http://www.pathname.com/fhs/ |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 575 |
| 579 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { | 576 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { |
| 580 g_invalid_specified_user_data_dir.Get() = user_data_dir; | 577 g_invalid_specified_user_data_dir.Get() = user_data_dir; |
| 581 } | 578 } |
| 582 | 579 |
| 583 const base::FilePath& GetInvalidSpecifiedUserDataDir() { | 580 const base::FilePath& GetInvalidSpecifiedUserDataDir() { |
| 584 return g_invalid_specified_user_data_dir.Get(); | 581 return g_invalid_specified_user_data_dir.Get(); |
| 585 } | 582 } |
| 586 | 583 |
| 587 } // namespace chrome | 584 } // namespace chrome |
| OLD | NEW |