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_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 return true; | 333 return true; |
334 } | 334 } |
335 LOG(ERROR) | 335 LOG(ERROR) |
336 << "Failed to locate and load the component updated flash plugin."; | 336 << "Failed to locate and load the component updated flash plugin."; |
337 } | 337 } |
338 #endif // defined(FLAPPER_AVAILABLE) | 338 #endif // defined(FLAPPER_AVAILABLE) |
339 return false; | 339 return false; |
340 } | 340 } |
341 #endif // defined(OS_LINUX) | 341 #endif // defined(OS_LINUX) |
342 | 342 |
| 343 // Similar to GetComponentUpdatedPepperFlash, this should be used on Linux only |
| 344 // because on other platforms the component updater can take responsibility for |
| 345 // locating and registering the bundled version of Flash. |
| 346 // However, a large number of tests depend upon having Flash registered |
| 347 // *synchronously* during browser startup. |
| 348 // TODO(waffles): Fix those tests and then compile / run this only on Linux. |
343 bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) { | 349 bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) { |
344 #if defined(FLAPPER_AVAILABLE) | 350 #if defined(FLAPPER_AVAILABLE) |
345 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 351 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
346 | 352 |
347 // Ignore bundled Pepper Flash if there is Pepper Flash specified from the | 353 // Ignore bundled Pepper Flash if there is Pepper Flash specified from the |
348 // command-line. | 354 // command-line. |
349 if (command_line->HasSwitch(switches::kPpapiFlashPath)) | 355 if (command_line->HasSwitch(switches::kPpapiFlashPath)) |
350 return false; | 356 return false; |
351 | 357 |
352 bool force_disable = | 358 bool force_disable = |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy()); | 718 origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy()); |
713 } | 719 } |
714 return origin_trial_policy_.get(); | 720 return origin_trial_policy_.get(); |
715 } | 721 } |
716 | 722 |
717 #if defined(OS_ANDROID) | 723 #if defined(OS_ANDROID) |
718 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { | 724 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { |
719 return new ChromeMediaClientAndroid(); | 725 return new ChromeMediaClientAndroid(); |
720 } | 726 } |
721 #endif // OS_ANDROID | 727 #endif // OS_ANDROID |
OLD | NEW |