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

Unified Diff: chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.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/api/extension_action/script_badge_manifest_unittest.cc
diff --git a/chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc b/chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc
index e4258cc4bc184c72ecb75c56db732fa88666c2ef..74f75d96c5fa2f2648a25be73d902ca61ae4850b 100644
--- a/chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc
+++ b/chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc
@@ -14,6 +14,7 @@
#include "testing/gtest/include/gtest/gtest.h"
namespace errors = extension_manifest_errors;
+namespace keys = extension_manifest_keys;
namespace extensions {
@@ -98,9 +99,9 @@ TEST_F(ScriptBadgeManifestTest, ScriptBadgeExplicitTitleAndIconsIgnored) {
EXPECT_THAT(StripMissingFlagWarning(extension->install_warnings()),
testing::ElementsAre(
- InstallWarning(InstallWarning::FORMAT_TEXT,
+ InstallWarning(keys::kScriptBadge,
errors::kScriptBadgeTitleIgnored),
- InstallWarning(InstallWarning::FORMAT_TEXT,
+ InstallWarning(keys::kScriptBadge,
errors::kScriptBadgeIconIgnored)));
const ExtensionIconSet& default_icon =

Powered by Google App Engine
This is Rietveld 408576698