| Index: chrome/common/extensions/manifest.cc
|
| diff --git a/chrome/common/extensions/manifest.cc b/chrome/common/extensions/manifest.cc
|
| index 15d62e5a69a3f2deba4edb7fbeba7d3055da4eeb..d8dbb87ebfd961e056168af3fb77a49af751373c 100644
|
| --- a/chrome/common/extensions/manifest.cc
|
| +++ b/chrome/common/extensions/manifest.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "chrome/common/extensions/extension_manifest_constants.h"
|
| #include "chrome/common/extensions/features/feature.h"
|
| #include "extensions/common/error_utils.h"
|
| #include "extensions/common/features/feature_provider.h"
|
| @@ -160,8 +161,8 @@ bool Manifest::ValidateManifest(
|
| it.Advance()) {
|
| if (!provider->GetFeature(it.key())) {
|
| warnings->push_back(InstallWarning(
|
| - base::StringPrintf("Unrecognized manifest key '%s'.",
|
| - it.key().c_str()),
|
| + ErrorUtils::FormatErrorMessage(
|
| + extension_manifest_errors::kUnrecognizedManifestKey, it.key()),
|
| it.key()));
|
| }
|
| }
|
|
|