Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 2130803003: Rearrange Flash component registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep using chrome_content_client to load bundled Flash Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/component_updater/pepper_flash_component_installer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/pepper_flash_component_installer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698