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

Unified Diff: chrome/common/pepper_plugin_registry.cc

Issue 3071027: Create a define for the gyp variable internal_pdf. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Move defines block Created 10 years, 4 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 | « chrome/chrome_common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pepper_plugin_registry.cc
diff --git a/chrome/common/pepper_plugin_registry.cc b/chrome/common/pepper_plugin_registry.cc
index 7caf9c9403bcc9cc3e41b20258230d545872f060..e246b5ad096220eba4706024451324e41967b32f 100644
--- a/chrome/common/pepper_plugin_registry.cc
+++ b/chrome/common/pepper_plugin_registry.cc
@@ -101,6 +101,7 @@ void PepperPluginRegistry::GetPluginInfoFromSwitch(
// static
void PepperPluginRegistry::GetExtraPlugins(
std::vector<PepperPluginInfo>* plugins) {
+#if defined(INTERNAL_PDF)
FilePath path;
// We can't check for path existance here, since we are in the sandbox.
// If plugin is missing, it will later fail to
@@ -114,6 +115,7 @@ void PepperPluginRegistry::GetExtraPlugins(
pdf.type_descriptions = "Portable Document Format";
plugins->push_back(pdf);
}
+#endif // INTERNAL_PDF
}
PepperPluginRegistry::InternalPluginInfo::InternalPluginInfo() {
« no previous file with comments | « chrome/chrome_common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698