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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 1072933006: Support whitelisting to handle insecure origins as trustworthy origins (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test, added IsOriginSecure plumbing etc Created 5 years, 8 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/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index b705da133c5ab5decd532e8a3aeac726d62e3fac..82d45e4c690106503f27902c83ff698657b0341d 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -22,6 +22,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/crash_keys.h"
+#include "chrome/common/origin_util.h"
#include "chrome/common/pepper_flash.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
@@ -551,3 +552,7 @@ bool ChromeContentClient::GetSandboxProfileForSandboxType(
return false;
}
#endif
+
+bool ChromeContentClient::IsOriginTrustWorthy(const GURL& url) const {
palmer 2015/04/20 22:16:18 "Trustworthy" is 1 word, so call this |IsOriginTru
kinuko 2015/04/21 16:15:48 Done.
+ return IsOriginSecure(url);
+}

Powered by Google App Engine
This is Rietveld 408576698