Index: chrome/common/extensions/manifest.cc |
diff --git a/chrome/common/extensions/manifest.cc b/chrome/common/extensions/manifest.cc |
index 008912a9571b762b0558d6dd67471a0666fb6308..c7e6b8e3a4caa945f39de11dbef064f4644f3cb7 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(*feature_name, result.message())); |
} |
// Also generate warnings for keys that are not features. |
@@ -166,7 +165,7 @@ bool Manifest::ValidateManifest( |
it.Advance()) { |
if (!provider->GetFeature(it.key())) { |
warnings->push_back(InstallWarning( |
- InstallWarning::FORMAT_TEXT, |
+ it.key(), |
base::StringPrintf("Unrecognized manifest key '%s'.", |
it.key().c_str()))); |
} |