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

Unified Diff: chrome/common/extensions/manifest.cc

Issue 22470007: Add a "key" entry to InstallWarnings, remove InstallWarning::Format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ec_infrastructure
Patch Set: Created 7 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
Index: chrome/common/extensions/manifest.cc
diff --git a/chrome/common/extensions/manifest.cc b/chrome/common/extensions/manifest.cc
index f25b6d299a2c6f1927f92687620ea86de731a4a8..15d62e5a69a3f2deba4edb7fbeba7d3055da4eeb 100644
--- a/chrome/common/extensions/manifest.cc
+++ b/chrome/common/extensions/manifest.cc
@@ -152,8 +152,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.
@@ -161,9 +160,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;
« no previous file with comments | « chrome/common/extensions/extension_file_util.cc ('k') | chrome/common/extensions/manifest_handlers/externally_connectable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698