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

Unified Diff: ios/web/public/origin_util.cc

Issue 1919473003: [ios Mojo] Added util function to convert WKSecurityOrigin to GURL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test Created 4 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
« no previous file with comments | « ios/web/public/origin_util.h ('k') | ios/web/public/origin_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/origin_util.cc
diff --git a/ios/web/public/origin_util.cc b/ios/web/public/origin_util.cc
deleted file mode 100644
index 28b39a94e18e6234f2dd6ae097eca24bd9ca0755..0000000000000000000000000000000000000000
--- a/ios/web/public/origin_util.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ios/web/public/origin_util.h"
-
-#include "net/base/url_util.h"
-#include "url/gurl.h"
-
-namespace web {
-
-bool IsOriginSecure(const GURL& url) {
- if (url.SchemeIsCryptographic() || url.SchemeIsFile())
- return true;
-
- if (url.SchemeIsFileSystem() && url.inner_url() &&
- IsOriginSecure(*url.inner_url())) {
- return true;
- }
-
- std::string hostname = url.HostNoBrackets();
- if (net::IsLocalhost(hostname))
- return true;
-
- return false;
-}
-
-} // namespace web
« no previous file with comments | « ios/web/public/origin_util.h ('k') | ios/web/public/origin_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698