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

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: 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
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..c393c3cc33679f84287c4df712f155b2661d5579 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() {}
Mihai Parparita -not on Chrome 2012/08/24 00:57:29 Body of this class declaration is indented too muc
+
+ // Return the single shared instance of CpuInfoProvider.
+ static CpuInfoProvider* Get();
+};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698