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

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

Issue 10704133: Merge 145639 to M21 - Fix r145632. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 "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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kPpapiFlashPath)) 254 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kPpapiFlashPath))
255 return false; 255 return false;
256 256
257 bool force_disable = CommandLine::ForCurrentProcess()->HasSwitch( 257 bool force_disable = CommandLine::ForCurrentProcess()->HasSwitch(
258 switches::kDisableBundledPpapiFlash); 258 switches::kDisableBundledPpapiFlash);
259 if (force_disable) 259 if (force_disable)
260 return false; 260 return false;
261 261
262 // For Linux ia32, Flapper requires SSE2. 262 // For Linux ia32, Flapper requires SSE2.
263 #if defined(OS_LINUX) && defined(ARCH_CPU_X86) 263 #if defined(OS_LINUX) && defined(ARCH_CPU_X86)
264 if (!base::CPU()::has_sse2()) 264 if (!base::CPU().has_sse2())
265 return false; 265 return false;
266 #endif // ARCH_CPU_X86 266 #endif // ARCH_CPU_X86
267 267
268 FilePath flash_path; 268 FilePath flash_path;
269 if (!PathService::Get(chrome::FILE_PEPPER_FLASH_PLUGIN, &flash_path)) 269 if (!PathService::Get(chrome::FILE_PEPPER_FLASH_PLUGIN, &flash_path))
270 return false; 270 return false;
271 // It is an error to have FLAPPER_AVAILABLE defined but then not having the 271 // It is an error to have FLAPPER_AVAILABLE defined but then not having the
272 // plugin file in place, but this happens in Chrome OS builds. 272 // plugin file in place, but this happens in Chrome OS builds.
273 // Use --disable-bundled-ppapi-flash to skip this. 273 // Use --disable-bundled-ppapi-flash to skip this.
274 DCHECK(file_util::PathExists(flash_path)); 274 DCHECK(file_util::PathExists(flash_path));
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 507
508 bool ChromeContentClient::GetBundledFieldTrialPepperFlash( 508 bool ChromeContentClient::GetBundledFieldTrialPepperFlash(
509 content::PepperPluginInfo* plugin, 509 content::PepperPluginInfo* plugin,
510 bool* override_npapi_flash) { 510 bool* override_npapi_flash) {
511 if (!ConductingPepperFlashFieldTrial()) 511 if (!ConductingPepperFlashFieldTrial())
512 return false; 512 return false;
513 return GetBundledPepperFlash(plugin, override_npapi_flash); 513 return GetBundledPepperFlash(plugin, override_npapi_flash);
514 } 514 }
515 515
516 } // namespace chrome 516 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698