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

Unified Diff: chrome/browser/extensions/api/system_cpu/system_cpu_api.cc

Issue 389633002: Move system.* family of APIs to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 3 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_cpu/system_cpu_api.cc
diff --git a/chrome/browser/extensions/api/system_cpu/system_cpu_api.cc b/chrome/browser/extensions/api/system_cpu/system_cpu_api.cc
deleted file mode 100644
index 4ace52814bbcb1e9b8ea0a9926e0716b183a7a44..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/system_cpu/system_cpu_api.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/command_line.h"
-#include "chrome/browser/extensions/api/system_cpu/cpu_info_provider.h"
-#include "chrome/browser/extensions/api/system_cpu/system_cpu_api.h"
-#include "chrome/common/chrome_switches.h"
-#include "extensions/common/features/base_feature_provider.h"
-
-namespace extensions {
-
-using api::system_cpu::CpuInfo;
-
-SystemCpuGetInfoFunction::SystemCpuGetInfoFunction() {
-}
-
-SystemCpuGetInfoFunction::~SystemCpuGetInfoFunction() {
-}
-
-bool SystemCpuGetInfoFunction::RunAsync() {
- CpuInfoProvider::Get()->StartQueryInfo(
- base::Bind(&SystemCpuGetInfoFunction::OnGetCpuInfoCompleted, this));
- return true;
-}
-
-void SystemCpuGetInfoFunction::OnGetCpuInfoCompleted(bool success) {
- if (success)
- SetResult(CpuInfoProvider::Get()->cpu_info().ToValue().release());
- else
- SetError("Error occurred when querying cpu information.");
- SendResponse(success);
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698