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

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

Issue 389633002: Move system.* family of APIs to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn build Created 6 years, 5 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/chrome/browser/extensions/api/system_cpu/cpu_info_provider.cc b/extensions/browser/api/system_cpu/cpu_info_provider.cc
similarity index 89%
rename from chrome/browser/extensions/api/system_cpu/cpu_info_provider.cc
rename to extensions/browser/api/system_cpu/cpu_info_provider.cc
index b59cb0495f90fc3821f7799b0d958e8d29a1787b..4517b517185a6cdeca9a970cdea0b6f5439a9ec1 100644
--- a/chrome/browser/extensions/api/system_cpu/cpu_info_provider.cc
+++ b/extensions/browser/api/system_cpu/cpu_info_provider.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/api/system_cpu/cpu_info_provider.h"
+#include "extensions/browser/api/system_cpu/cpu_info_provider.h"
#include "base/sys_info.h"
namespace extensions {
-using api::system_cpu::CpuInfo;
+using core_api::system_cpu::CpuInfo;
// Static member intialization.
base::LazyInstance<scoped_refptr<CpuInfoProvider> >
@@ -37,8 +37,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()));
+ info_.processors.push_back(linked_ptr<core_api::system_cpu::ProcessorInfo>(
+ new core_api::system_cpu::ProcessorInfo()));
}
// Initialize the ProcessorInfos, or return an empty array if that fails.
if (!QueryCpuTimePerProcessor(&info_.processors))

Powered by Google App Engine
This is Rietveld 408576698