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

Unified Diff: content/public/common/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: content/public/common/content_client.cc
diff --git a/content/public/common/content_client.cc b/content/public/common/content_client.cc
index 425c40ff29dc6f479919b35f8d3f64499133ffde..183a05d2ae9558253273c2a817a8d9b8a2659ede 100644
--- a/content/public/common/content_client.cc
+++ b/content/public/common/content_client.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/strings/string_piece.h"
+#include "content/public/common/origin_util.h"
#include "content/public/common/user_agent.h"
#include "ui/gfx/image/image.h"
@@ -111,4 +112,8 @@ bool ContentClient::GetSandboxProfileForSandboxType(
}
#endif
+bool ContentClient::IsOriginTrustWorthy(const GURL& url) const {
+ return IsOriginSecure(url);
palmer 2015/04/20 22:16:18 So, this calls the 1 in content::, right? This amb
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698