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

Unified Diff: extensions/common/install_warning.h

Issue 16464004: Turn disallowed URL patterns such as <all_urls> for externally_connectable into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test that warnings also imply failure Created 7 years, 6 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: extensions/common/install_warning.h
diff --git a/extensions/common/install_warning.h b/extensions/common/install_warning.h
index 6a2cb656b7c5c1ef7fccad812899bc9da5fa112f..fb3fccb29b6e6de7be242e83b0295aff933f9d24 100644
--- a/extensions/common/install_warning.h
+++ b/extensions/common/install_warning.h
@@ -17,6 +17,9 @@ struct InstallWarning {
FORMAT_TEXT,
FORMAT_HTML,
};
+ static InstallWarning Text(const std::string& message) {
+ return InstallWarning(FORMAT_TEXT, message);
+ }
InstallWarning(Format format, const std::string& message)
: format(format), message(message) {
}
« no previous file with comments | « chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc ('k') | extensions/common/url_pattern_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698