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

Side by Side Diff: base/sys_info_ios.mm

Issue 10914060: Refine systemInfo.cpu API defintions and provide systemInfo.cpu.get impl for Windows and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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> 7 #import <UIKit/UIKit.h>
8 #include <mach/mach.h> 8 #include <mach/mach.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 reinterpret_cast<host_info_t>(&hostinfo), 58 reinterpret_cast<host_info_t>(&hostinfo),
59 &count); 59 &count);
60 if (result != KERN_SUCCESS) { 60 if (result != KERN_SUCCESS) {
61 NOTREACHED(); 61 NOTREACHED();
62 return 0; 62 return 0;
63 } 63 }
64 DCHECK_EQ(HOST_BASIC_INFO_COUNT, count); 64 DCHECK_EQ(HOST_BASIC_INFO_COUNT, count);
65 return static_cast<int64>(hostinfo.max_mem); 65 return static_cast<int64>(hostinfo.max_mem);
66 } 66 }
67 67
68 // static
69 std::string SysInfo::CPUModelName() {
70 // TODO(hongbo): Retrieve cpu model name.
71 return "unknown";
72 }
73
68 } // namespace base 74 } // namespace base
OLDNEW
« no previous file with comments | « base/sys_info.h ('k') | base/sys_info_linux.cc » ('j') | base/sys_info_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698