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

Side by Side Diff: base/sys_info_ios.mm

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/sys_info.h" 5 #include "base/sys_info.h"
6 6
7 #import <UIKit/UIKit.h>
8 #include <mach/mach.h> 7 #include <mach/mach.h>
9 #include <sys/sysctl.h> 8 #include <sys/sysctl.h>
10 #include <sys/types.h> 9 #include <sys/types.h>
10 #import <UIKit/UIKit.h>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/mac/scoped_mach_port.h" 13 #include "base/mac/scoped_mach_port.h"
14 #include "base/mac/scoped_nsautorelease_pool.h" 14 #include "base/mac/scoped_nsautorelease_pool.h"
15 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
16 16
17 namespace base { 17 namespace base {
18 18
19 // static 19 // static
20 std::string SysInfo::OperatingSystemName() { 20 std::string SysInfo::OperatingSystemName() {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // static 98 // static
99 std::string SysInfo::CPUModelName() { 99 std::string SysInfo::CPUModelName() {
100 char name[256]; 100 char name[256];
101 size_t len = arraysize(name); 101 size_t len = arraysize(name);
102 if (sysctlbyname("machdep.cpu.brand_string", &name, &len, NULL, 0) == 0) 102 if (sysctlbyname("machdep.cpu.brand_string", &name, &len, NULL, 0) == 0)
103 return name; 103 return name;
104 return std::string(); 104 return std::string();
105 } 105 }
106 106
107 } // namespace base 107 } // namespace base
OLDNEW
« no previous file with comments | « base/power_monitor/power_monitor_device_source_mac.mm ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698