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

Unified Diff: chrome/browser/installable/installable_logging.cc

Issue 2248293002: Do not install WebAPKs with web manifests with invalid URL components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'webapk_updater_non_installable' into webapk_installable_checker Created 4 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/browser/installable/installable_logging.cc
diff --git a/chrome/browser/installable/installable_logging.cc b/chrome/browser/installable/installable_logging.cc
index 8e54ce0a5918f67360e23ad28c38576f9114f828..3afa80f04511abf9ecf15e4bdfcd5416c6993c10 100644
--- a/chrome/browser/installable/installable_logging.cc
+++ b/chrome/browser/installable/installable_logging.cc
@@ -59,6 +59,11 @@ static const char kNoIdSpecifiedMessage[] =
static const char kIdsDoNotMatchMessage[] =
"a Play Store app URL and Play Store ID were specified in the manifest, "
"but they do not match";
+static const char kUrlUsernameAndPasswordNotSupportedForWebApkMessage[] =
+ "usernames and passwords in URLs in the web manifest are not supported for "
+ "WebAPKs";
+static const char kUrlPortNotSupportedForWebApkMessage[] =
+ "explicit port in URLs in the web manifest is not supported for WebAPKs";
} // namespace
@@ -140,6 +145,12 @@ void LogErrorToConsole(content::WebContents* web_contents,
case IDS_DO_NOT_MATCH:
pattern = kIdsDoNotMatchMessage;
break;
+ case URL_USERNAME_AND_PASSWORD_NOT_SUPPORTED_FOR_WEBAPK:
+ pattern = kUrlUsernameAndPasswordNotSupportedForWebApkMessage;
+ break;
+ case URL_PORT_NOT_SUPPORTED_FOR_WEBAPK:
+ pattern = kUrlPortNotSupportedForWebApkMessage;
+ break;
}
if (!pattern)

Powered by Google App Engine
This is Rietveld 408576698