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

Side by Side Diff: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_mac.cc

Issue 10831353: Add a generic template for system info provider (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code polishment Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h"
6
7 namespace extensions {
8
9 using api::experimental_system_info_cpu::CpuInfo;
10
11 // CpuInfoProvider implementation on Mac OS.
12 class CpuInfoProviderMac : public CpuInfoProvider {
13 public:
14 CpuInfoProviderMac() {}
15 virtual ~CpuInfoProviderMac() {}
16 virtual bool QueryInfo(CpuInfo* info) OVERRIDE;
17 };
18
19 bool CpuInfoProviderMac::QueryInfo(CpuInfo* info) {
20 // TODO(hmin): not implemented yet.
21 return false;
22 }
23
24 // static
25 template<>
26 CpuInfoProvider* CpuInfoProvider::Get() {
27 return CpuInfoProvider::GetInstance<CpuInfoProviderMac>();
28 }
29
30 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698