| Index: chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| diff --git a/chrome/browser/extensions/api/system_memory/system_memory_api.cc b/chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| deleted file mode 100644
|
| index f0c4a24bba67744e06d9ea34175a96afa3f0c0dd..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| +++ /dev/null
|
| @@ -1,31 +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 "chrome/browser/extensions/api/system_memory/system_memory_api.h"
|
| -
|
| -#include "chrome/browser/extensions/api/system_memory/memory_info_provider.h"
|
| -
|
| -namespace extensions {
|
| -
|
| -using api::system_memory::MemoryInfo;
|
| -
|
| -SystemMemoryGetInfoFunction::SystemMemoryGetInfoFunction() {}
|
| -
|
| -SystemMemoryGetInfoFunction::~SystemMemoryGetInfoFunction() {}
|
| -
|
| -bool SystemMemoryGetInfoFunction::RunAsync() {
|
| - MemoryInfoProvider::Get()->StartQueryInfo(
|
| - base::Bind(&SystemMemoryGetInfoFunction::OnGetMemoryInfoCompleted, this));
|
| - return true;
|
| -}
|
| -
|
| -void SystemMemoryGetInfoFunction::OnGetMemoryInfoCompleted(bool success) {
|
| - if (success)
|
| - SetResult(MemoryInfoProvider::Get()->memory_info().ToValue().release());
|
| - else
|
| - SetError("Error occurred when querying memory information.");
|
| - SendResponse(success);
|
| -}
|
| -
|
| -} // namespace extensions
|
|
|