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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1214183008: Update StartsWith calls to use new versions in chrome and content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/common/pref_names_util.cc ('k') | chrome/renderer/content_settings_observer.cc » ('j') | 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 f8779f4b223d93ee564b07599f45c2e96763e64f..03325bbdcf05bfe46a2e790b4b56c199f199d994 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1481,10 +1481,14 @@ bool ChromeContentRendererClient::AllowPepperMediaStreamAPI(
// these APIs are public and stable.
std::string url_host = url.host();
if (url.SchemeIs("https") &&
- (base::EndsWith(url_host, "talkgadget.google.com", false) ||
- base::EndsWith(url_host, "plus.google.com", false) ||
- base::EndsWith(url_host, "plus.sandbox.google.com", false)) &&
- base::StartsWithASCII(url.path(), "/hangouts/", false)) {
+ (base::EndsWith(url_host, "talkgadget.google.com",
+ base::CompareCase::INSENSITIVE_ASCII) ||
+ base::EndsWith(url_host, "plus.google.com",
+ base::CompareCase::INSENSITIVE_ASCII) ||
+ base::EndsWith(url_host, "plus.sandbox.google.com",
+ base::CompareCase::INSENSITIVE_ASCII)) &&
+ base::StartsWith(url.path(), "/hangouts/",
+ base::CompareCase::INSENSITIVE_ASCII)) {
return true;
}
// Allow access for tests.
« no previous file with comments | « chrome/common/pref_names_util.cc ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698