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

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

Issue 10911137: Remove bundled NPAPI Flash on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/plugin_prefs_factory.cc ('k') | chrome/common/chrome_paths.h » ('j') | 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/cpu.h" 8 #include "base/cpu.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id); 458 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
459 } 459 }
460 460
461 #if defined(OS_WIN) 461 #if defined(OS_WIN)
462 bool ChromeContentClient::SandboxPlugin(CommandLine* command_line, 462 bool ChromeContentClient::SandboxPlugin(CommandLine* command_line,
463 sandbox::TargetPolicy* policy) { 463 sandbox::TargetPolicy* policy) {
464 std::wstring plugin_dll = command_line-> 464 std::wstring plugin_dll = command_line->
465 GetSwitchValueNative(switches::kPluginPath); 465 GetSwitchValueNative(switches::kPluginPath);
466 466
467 FilePath builtin_flash; 467 FilePath builtin_flash;
468 if (!PathService::Get(chrome::FILE_FLASH_PLUGIN, &builtin_flash)) 468 if (!PathService::Get(chrome::FILE_FLASH_PLUGIN_EXISTING, &builtin_flash))
469 return false; 469 return false;
470 470
471 FilePath plugin_path(plugin_dll); 471 FilePath plugin_path(plugin_dll);
472 if (plugin_path.BaseName() != builtin_flash.BaseName()) 472 if (plugin_path.BaseName() != builtin_flash.BaseName())
473 return false; 473 return false;
474 474
475 if (base::win::GetVersion() <= base::win::VERSION_XP || 475 if (base::win::GetVersion() <= base::win::VERSION_XP ||
476 CommandLine::ForCurrentProcess()->HasSwitch( 476 CommandLine::ForCurrentProcess()->HasSwitch(
477 switches::kDisableFlashSandbox)) { 477 switches::kDisableFlashSandbox)) {
478 return false; 478 return false;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 541
542 bool ChromeContentClient::GetBundledFieldTrialPepperFlash( 542 bool ChromeContentClient::GetBundledFieldTrialPepperFlash(
543 content::PepperPluginInfo* plugin, 543 content::PepperPluginInfo* plugin,
544 bool* override_npapi_flash) { 544 bool* override_npapi_flash) {
545 if (!ConductingPepperFlashFieldTrial()) 545 if (!ConductingPepperFlashFieldTrial())
546 return false; 546 return false;
547 return GetBundledPepperFlash(plugin, override_npapi_flash); 547 return GetBundledPepperFlash(plugin, override_npapi_flash);
548 } 548 }
549 549
550 } // namespace chrome 550 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/plugin_prefs_factory.cc ('k') | chrome/common/chrome_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698