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

Side by Side Diff: ios/web/web_view_util.mm

Issue 1106963003: Re-sync ios/web with downstream version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forgotten file 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 unified diff | Download patch
« no previous file with comments | « ios/web/web_view_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/web/web_view_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698