| 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/file_util.h" | 7 #include "base/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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 if (!PathService::Get(base::DIR_MODULE, &cur)) | 357 if (!PathService::Get(base::DIR_MODULE, &cur)) |
| 358 return false; | 358 return false; |
| 359 cur = cur.Append(kO1DPluginFileName); | 359 cur = cur.Append(kO1DPluginFileName); |
| 360 break; | 360 break; |
| 361 case chrome::FILE_GTALK_PLUGIN: | 361 case chrome::FILE_GTALK_PLUGIN: |
| 362 if (!PathService::Get(base::DIR_MODULE, &cur)) | 362 if (!PathService::Get(base::DIR_MODULE, &cur)) |
| 363 return false; | 363 return false; |
| 364 cur = cur.Append(kGTalkPluginFileName); | 364 cur = cur.Append(kGTalkPluginFileName); |
| 365 break; | 365 break; |
| 366 #endif | 366 #endif |
| 367 #if defined(CLD2_IS_COMPONENT) | |
| 368 case chrome::DIR_COMPONENT_CLD2: | 367 case chrome::DIR_COMPONENT_CLD2: |
| 369 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) | 368 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) |
| 370 return false; | 369 return false; |
| 371 cur = cur.Append(FILE_PATH_LITERAL("CLD")); | 370 cur = cur.Append(FILE_PATH_LITERAL("CLD")); |
| 372 break; | 371 break; |
| 373 #endif // defined(CLD2_IS_COMPONENT) | |
| 374 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) | 372 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) |
| 375 #if defined(WIDEVINE_CDM_IS_COMPONENT) | 373 #if defined(WIDEVINE_CDM_IS_COMPONENT) |
| 376 case chrome::DIR_COMPONENT_WIDEVINE_CDM: | 374 case chrome::DIR_COMPONENT_WIDEVINE_CDM: |
| 377 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) | 375 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) |
| 378 return false; | 376 return false; |
| 379 cur = cur.Append(kWidevineCdmBaseDirectory); | 377 cur = cur.Append(kWidevineCdmBaseDirectory); |
| 380 break; | 378 break; |
| 381 #endif // defined(WIDEVINE_CDM_IS_COMPONENT) | 379 #endif // defined(WIDEVINE_CDM_IS_COMPONENT) |
| 382 // TODO(xhwang): FILE_WIDEVINE_CDM_ADAPTER has different meanings. | 380 // TODO(xhwang): FILE_WIDEVINE_CDM_ADAPTER has different meanings. |
| 383 // In the component case, this is the source adapter. Otherwise, it is the | 381 // In the component case, this is the source adapter. Otherwise, it is the |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 594 |
| 597 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { | 595 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { |
| 598 g_invalid_specified_user_data_dir.Get() = user_data_dir; | 596 g_invalid_specified_user_data_dir.Get() = user_data_dir; |
| 599 } | 597 } |
| 600 | 598 |
| 601 const base::FilePath& GetInvalidSpecifiedUserDataDir() { | 599 const base::FilePath& GetInvalidSpecifiedUserDataDir() { |
| 602 return g_invalid_specified_user_data_dir.Get(); | 600 return g_invalid_specified_user_data_dir.Get(); |
| 603 } | 601 } |
| 604 | 602 |
| 605 } // namespace chrome | 603 } // namespace chrome |
| OLD | NEW |