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

Unified Diff: components/autofill/content/browser/wallet/wallet_service_url_unittest.cc

Issue 1099453005: Switch web API/permission code to use IsOriginSecure() instead of SchemeIsSecure(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto the moved version of IsOriginSecure (https://codereview.chromium.org/1101033003/). 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: components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
diff --git a/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc b/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
index de289e668e692ae0812be235c0f9ba3e070b5a5a..0a9f3b8ddd2356ac51407075b854c426f6019219 100644
--- a/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
+++ b/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
@@ -6,6 +6,7 @@
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/origin_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
@@ -115,7 +116,7 @@ TEST(WalletServiceUrl, IsUsingProd) {
}
TEST(WalletServiceUrl, IsSignInContinueUrl) {
- EXPECT_TRUE(GetSignInContinueUrl().SchemeIsSecure());
Dan Beam 2015/05/07 20:50:53 the intent of this is to ensure the transmission o
lgarron 2015/05/07 20:55:33 Is the intent to ensure that it is literally encry
palmer 2015/05/07 20:57:10 Correct: |IsOriginSecure| will also return true fo
Dan Beam 2015/05/07 20:58:29 it'd probably allow http:// trusted origins as wel
lgarron 2015/05/07 21:08:32 It allows HTTP origins if the host is localhost, o
+ EXPECT_TRUE(IsOriginSecure(GetSignInContinueUrl()));
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
command_line->AppendSwitchASCII(switches::kWalletServiceUseSandbox, "1");

Powered by Google App Engine
This is Rietveld 408576698