OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ios/web/public/origin_util.h" | 5 #import "ios/web/public/origin_util.h" |
6 | 6 |
7 #import <WebKit/WebKit.h> | 7 #import <WebKit/WebKit.h> |
8 | 8 |
9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
(...skipping 23 matching lines...) Expand all Loading... | |
34 return false; | 34 return false; |
35 } | 35 } |
36 | 36 |
37 GURL GURLOriginWithWKSecurityOrigin(WKSecurityOrigin* origin) { | 37 GURL GURLOriginWithWKSecurityOrigin(WKSecurityOrigin* origin) { |
38 if (!origin) | 38 if (!origin) |
39 return GURL(); | 39 return GURL(); |
40 | 40 |
41 url::SchemeHostPort origin_tuple(base::SysNSStringToUTF8(origin.protocol), | 41 url::SchemeHostPort origin_tuple(base::SysNSStringToUTF8(origin.protocol), |
42 base::SysNSStringToUTF8(origin.host), | 42 base::SysNSStringToUTF8(origin.host), |
43 base::checked_cast<uint16_t>(origin.port)); | 43 base::checked_cast<uint16_t>(origin.port)); |
44 return GURL(origin_tuple.Serialize()); | 44 return origin_tuple.GetURL(); |
sdefresne
2016/10/04 10:59:33
It look like this code broke the iOS bots with a f
Charlie Harrison
2016/10/04 12:15:22
Yup, I think this indicates problems with the depe
| |
45 } | 45 } |
46 | 46 |
47 } // namespace web | 47 } // namespace web |
OLD | NEW |