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

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

Issue 18290002: [SystemInfo API] Finish TODOs in SystemInfoProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dev_rewrite_storage_info_api
Patch Set: Pass chromeos unit_tests 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
index 38bf680cce472465bd04abf0c82cbf7974defdd9..7439294ccc4a834fbb89a817f4dc8e1e91dc280a 100644
--- 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
@@ -20,10 +20,9 @@ bool SystemInfoMemoryGetFunction::RunImpl() {
return true;
}
-void SystemInfoMemoryGetFunction::OnGetMemoryInfoCompleted(
- const MemoryInfo& info, bool success) {
+void SystemInfoMemoryGetFunction::OnGetMemoryInfoCompleted(bool success) {
if (success)
- SetResult(info.ToValue().release());
+ SetResult(MemoryInfoProvider::Get()->memory_info().ToValue().release());
else
SetError("Error occurred when querying memory information.");
SendResponse(success);

Powered by Google App Engine
This is Rietveld 408576698