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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1131493004: Switch //chrome functions to use SchemeIsCryptographic() instead of SchemeIsSecure(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use inner URL for a filesystem calculation. Created 5 years, 7 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
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 28164166aa42e47db4cd605fd3e50273bcd6b775..8e92dfcea4547c48ee1f72f33511004d7957dc43 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1023,8 +1023,7 @@ bool ChromeContentRendererClient::IsNaClAllowed(
bool is_photo_app =
// Whitelisted apps must be served over https.
- app_url.SchemeIs("https") &&
- manifest_url.SchemeIs("https") &&
+ app_url.SchemeIsCryptographic() && manifest_url.SchemeIsCryptographic() &&
(EndsWith(app_url_host, "plus.google.com", false) ||
EndsWith(app_url_host, "plus.sandbox.google.com", false)) &&
manifest_url.DomainIs("ssl.gstatic.com") &&
@@ -1037,9 +1036,8 @@ bool ChromeContentRendererClient::IsNaClAllowed(
}
bool is_hangouts_app =
// Whitelisted apps must be served over secure scheme.
- app_url.SchemeIs("https") &&
- manifest_url.SchemeIsSecure() &&
- manifest_url.SchemeIsFileSystem() &&
+ app_url.SchemeIsCryptographic() && manifest_url.SchemeIsFileSystem() &&
+ manifest_url.inner_url()->SchemeIsCryptographic() &&
(EndsWith(app_url_host, "talkgadget.google.com", false) ||
EndsWith(app_url_host, "plus.google.com", false) ||
EndsWith(app_url_host, "plus.sandbox.google.com", false)) &&
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698