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

Unified Diff: chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc

Issue 19912002: [SystemInfo API] Rename systemInfo Memory API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update commit message. Created 7 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: chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc
diff --git a/chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc b/chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc
deleted file mode 100644
index 7439294ccc4a834fbb89a817f4dc8e1e91dc280a..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/extensions/api/system_info_memory/system_info_memory_api.h"
-
-#include "chrome/browser/extensions/api/system_info_memory/memory_info_provider.h"
-
-namespace extensions {
-
-using api::system_info_memory::MemoryInfo;
-
-SystemInfoMemoryGetFunction::SystemInfoMemoryGetFunction() {}
-
-SystemInfoMemoryGetFunction::~SystemInfoMemoryGetFunction() {}
-
-bool SystemInfoMemoryGetFunction::RunImpl() {
- MemoryInfoProvider::Get()->StartQueryInfo(
- base::Bind(&SystemInfoMemoryGetFunction::OnGetMemoryInfoCompleted, this));
- return true;
-}
-
-void SystemInfoMemoryGetFunction::OnGetMemoryInfoCompleted(bool success) {
- if (success)
- SetResult(MemoryInfoProvider::Get()->memory_info().ToValue().release());
- else
- SetError("Error occurred when querying memory information.");
- SendResponse(success);
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698