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

Unified Diff: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h

Issue 10876041: Polish the SystemInfoProvider template code and refactor StorageInfoProvider based on it (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use string16 instead of wstring to avoid Presubmit warning 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h
diff --git a/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h b/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h
index b0cb12f56292172f6aeb89836b05a23fc26eb641..5a714dbfe360f0e9f91443ba7fbac43acd0bd22a 100644
--- a/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h
+++ b/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h
@@ -9,8 +9,14 @@
namespace extensions {
-typedef SystemInfoProvider<api::experimental_system_info_cpu::CpuInfo>
- CpuInfoProvider;
+class CpuInfoProvider
+ : public SystemInfoProvider<api::experimental_system_info_cpu::CpuInfo> {
+ public:
+ virtual ~CpuInfoProvider() {}
+
+ // Return the single shared instance of CpuInfoProvider.
+ static CpuInfoProvider* Get();
+};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698