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

Unified Diff: extensions/browser/api/system_cpu/cpu_info_provider_win.cc

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: extensions/browser/api/system_cpu/cpu_info_provider_win.cc
diff --git a/extensions/browser/api/system_cpu/cpu_info_provider_win.cc b/extensions/browser/api/system_cpu/cpu_info_provider_win.cc
index ebd28108df48650527a46f2a75663584927a5e96..c3a4002a0167954d89c5d47c6596fde74c21c5d7 100644
--- a/extensions/browser/api/system_cpu/cpu_info_provider_win.cc
+++ b/extensions/browser/api/system_cpu/cpu_info_provider_win.cc
@@ -25,7 +25,7 @@ typedef DWORD(WINAPI* NtQuerySystemInformationPF)(DWORD system_info_class,
} // namespace
bool CpuInfoProvider::QueryCpuTimePerProcessor(
- std::vector<linked_ptr<api::system_cpu::ProcessorInfo>>* infos) {
+ std::vector<api::system_cpu::ProcessorInfo>* infos) {
DCHECK(infos);
HMODULE ntdll = GetModuleHandle(kNtdll);
@@ -64,10 +64,10 @@ bool CpuInfoProvider::QueryCpuTimePerProcessor(
// KernelTime needs to be fixed-up, because it includes both idle time and
// real kernel time.
- infos->at(i)->usage.kernel = kernel - idle;
- infos->at(i)->usage.user = user;
- infos->at(i)->usage.idle = idle;
- infos->at(i)->usage.total = kernel + user;
+ infos->at(i).usage.kernel = kernel - idle;
+ infos->at(i).usage.user = user;
+ infos->at(i).usage.idle = idle;
+ infos->at(i).usage.total = kernel + user;
}
return true;
« no previous file with comments | « extensions/browser/api/system_cpu/cpu_info_provider_mac.cc ('k') | extensions/browser/api/system_cpu/system_cpu_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698