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

Unified Diff: extensions/browser/api/system_cpu/cpu_info_provider.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.cc
diff --git a/extensions/browser/api/system_cpu/cpu_info_provider.cc b/extensions/browser/api/system_cpu/cpu_info_provider.cc
index 59a615711b220511d4cd24aeb4c8b7d7744700b3..ac85834c2bb59d031259b30b883169218a67e9fc 100644
--- a/extensions/browser/api/system_cpu/cpu_info_provider.cc
+++ b/extensions/browser/api/system_cpu/cpu_info_provider.cc
@@ -34,10 +34,8 @@ bool CpuInfoProvider::QueryInfo() {
info_.processors.clear();
// Fill in the correct number of uninitialized ProcessorInfos.
- for (int i = 0; i < info_.num_of_processors; ++i) {
- info_.processors.push_back(linked_ptr<api::system_cpu::ProcessorInfo>(
- new api::system_cpu::ProcessorInfo()));
- }
+ for (int i = 0; i < info_.num_of_processors; ++i)
+ info_.processors.push_back(api::system_cpu::ProcessorInfo());
// Initialize the ProcessorInfos, or return an empty array if that fails.
if (!QueryCpuTimePerProcessor(&info_.processors))
info_.processors.clear();
« no previous file with comments | « extensions/browser/api/system_cpu/cpu_info_provider.h ('k') | extensions/browser/api/system_cpu/cpu_info_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698