Index: chrome/common/extensions/manifest.cc |
diff --git a/chrome/common/extensions/manifest.cc b/chrome/common/extensions/manifest.cc |
index 008912a9571b762b0558d6dd67471a0666fb6308..b07abd309d874aacb711a0367239c22831bd5faf 100644 |
--- a/chrome/common/extensions/manifest.cc |
+++ b/chrome/common/extensions/manifest.cc |
@@ -157,8 +157,7 @@ bool Manifest::ValidateManifest( |
extension_id_, type_, Feature::ConvertLocation(location_), |
GetManifestVersion()); |
if (!result.is_available()) |
- warnings->push_back(InstallWarning( |
- InstallWarning::FORMAT_TEXT, result.message())); |
+ warnings->push_back(InstallWarning(result.message(), *feature_name)); |
} |
// Also generate warnings for keys that are not features. |
@@ -166,9 +165,9 @@ bool Manifest::ValidateManifest( |
it.Advance()) { |
if (!provider->GetFeature(it.key())) { |
warnings->push_back(InstallWarning( |
- InstallWarning::FORMAT_TEXT, |
base::StringPrintf("Unrecognized manifest key '%s'.", |
- it.key().c_str()))); |
+ it.key().c_str()), |
+ it.key())); |
} |
} |
return true; |