OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ios/web/web_view_util.h" | 5 #include "ios/web/public/web_view_util.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #include <Foundation/Foundation.h> |
8 #include <sys/sysctl.h> | 8 #include <sys/sysctl.h> |
9 | 9 |
10 #include "base/ios/ios_util.h" | 10 #include "base/ios/ios_util.h" |
11 | 11 |
12 namespace web { | 12 namespace web { |
13 | 13 |
14 bool IsWKWebViewSupported() { | 14 bool IsWKWebViewSupported() { |
15 // WKWebView is available starting from iOS8. | 15 // WKWebView is available starting from iOS8. |
(...skipping 17 matching lines...) Expand all Loading... |
33 uint32_t cpu64bit_capable = 0; | 33 uint32_t cpu64bit_capable = 0; |
34 size_t sizes = sizeof(cpu64bit_capable); | 34 size_t sizes = sizeof(cpu64bit_capable); |
35 sysctlbyname("hw.cpu64bit_capable", &cpu64bit_capable, &sizes, NULL, 0); | 35 sysctlbyname("hw.cpu64bit_capable", &cpu64bit_capable, &sizes, NULL, 0); |
36 return !cpu64bit_capable; | 36 return !cpu64bit_capable; |
37 #else | 37 #else |
38 return true; | 38 return true; |
39 #endif | 39 #endif |
40 } | 40 } |
41 | 41 |
42 } // namespace web | 42 } // namespace web |
OLD | NEW |