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

Unified Diff: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc
diff --git a/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc b/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc
index 7f43b00d3bbd02302516d183fe9be7aa95d57280..eb9e2fe55fb797b726adb256a34c1ff67b1ad8b8 100644
--- a/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc
+++ b/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc
@@ -6,28 +6,9 @@
namespace extensions {
-namespace {
-
-using api::experimental_system_info_cpu::CpuInfo;
-
-// CpuInfoProvider implementation on Mac OS.
-class CpuInfoProviderMac : public CpuInfoProvider {
- public:
- CpuInfoProviderMac() {}
- virtual ~CpuInfoProviderMac() {}
- virtual bool QueryInfo(CpuInfo* info) OVERRIDE;
-};
-
-bool CpuInfoProviderMac::QueryInfo(CpuInfo* info) {
- // TODO(hmin): not implemented yet.
+bool CpuInfoProvider::QueryCpuTimePerProcessor(std::vector<CpuTime>* times) {
+ // TODO(hongbo): Query the cpu time.
return false;
}
-} // namespace
-
-// static
-CpuInfoProvider* CpuInfoProvider::Get() {
- return CpuInfoProvider::GetInstance<CpuInfoProviderMac>();
-}
-
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698