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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 10035024: DCHECK earlier if pepper flash is missing even though FLAPPER_AVAILABLE is defined. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index cbb47ddf0c9cb496b29e6a45b27d0ad8d5ffa495..9df94d8049a5bee43accfc9f1a2396cdb133132b 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -231,6 +231,9 @@ void AddPepperFlash(std::vector<content::PepperPluginInfo>* plugins) {
#if defined(FLAPPER_AVAILABLE)
if (!PathService::Get(chrome::FILE_PEPPER_FLASH_PLUGIN, &plugin.path))
return;
+ DCHECK(file_util::PathExists(plugin.path))
viettrungluu 2012/04/18 16:24:39 This, I believe, causes file IO to be done on the
Joao da Silva 2012/04/19 13:27:22 This function is similar to ComputeBuiltInPlugins(
viettrungluu 2012/04/19 23:34:25 ComputeBuiltInPlugins() should be fixed. Well, mor
viettrungluu 2012/04/20 05:32:11 Forgot to say: lgtm with a less verbose message.
Joao da Silva 2012/04/20 10:00:30 Removed the log message altogether, and left a com
+ << "FLAPPER_AVAILABLE is defined but the plugin does not exist. "
+ << "Use --" << switches::kDisableBundledPpapiFlash;
flash_version = FLAPPER_VERSION_STRING;
#else
LOG(ERROR) << "PPAPI Flash not included at build time.";
« 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