| Index: chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| diff --git a/chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc b/chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| similarity index 50%
|
| rename from chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc
|
| rename to chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| index 7439294ccc4a834fbb89a817f4dc8e1e91dc280a..88a7960c8cb810f9ba30ecd327705cf3482f5b61 100644
|
| --- a/chrome/browser/extensions/api/system_info_memory/system_info_memory_api.cc
|
| +++ b/chrome/browser/extensions/api/system_memory/system_memory_api.cc
|
| @@ -2,25 +2,25 @@
|
| // 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_memory/system_memory_api.h"
|
|
|
| -#include "chrome/browser/extensions/api/system_info_memory/memory_info_provider.h"
|
| +#include "chrome/browser/extensions/api/system_memory/memory_info_provider.h"
|
|
|
| namespace extensions {
|
|
|
| -using api::system_info_memory::MemoryInfo;
|
| +using api::system_memory::MemoryInfo;
|
|
|
| -SystemInfoMemoryGetFunction::SystemInfoMemoryGetFunction() {}
|
| +SystemMemoryGetInfoFunction::SystemMemoryGetInfoFunction() {}
|
|
|
| -SystemInfoMemoryGetFunction::~SystemInfoMemoryGetFunction() {}
|
| +SystemMemoryGetInfoFunction::~SystemMemoryGetInfoFunction() {}
|
|
|
| -bool SystemInfoMemoryGetFunction::RunImpl() {
|
| +bool SystemMemoryGetInfoFunction::RunImpl() {
|
| MemoryInfoProvider::Get()->StartQueryInfo(
|
| - base::Bind(&SystemInfoMemoryGetFunction::OnGetMemoryInfoCompleted, this));
|
| + base::Bind(&SystemMemoryGetInfoFunction::OnGetMemoryInfoCompleted, this));
|
| return true;
|
| }
|
|
|
| -void SystemInfoMemoryGetFunction::OnGetMemoryInfoCompleted(bool success) {
|
| +void SystemMemoryGetInfoFunction::OnGetMemoryInfoCompleted(bool success) {
|
| if (success)
|
| SetResult(MemoryInfoProvider::Get()->memory_info().ToValue().release());
|
| else
|
|
|