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

Unified Diff: extensions/browser/api/system_memory/system_memory_api.cc

Issue 1991083002: Remove ExtensionFunction::SetResult(T*) overload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 4 years, 7 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: extensions/browser/api/system_memory/system_memory_api.cc
diff --git a/extensions/browser/api/system_memory/system_memory_api.cc b/extensions/browser/api/system_memory/system_memory_api.cc
index 82c081a1d0ba46a88c4b9eae07f1aa0df43b90f4..048c8148e5c070ff12f0d27b774b417f7dc33fb6 100644
--- a/extensions/browser/api/system_memory/system_memory_api.cc
+++ b/extensions/browser/api/system_memory/system_memory_api.cc
@@ -24,7 +24,7 @@ bool SystemMemoryGetInfoFunction::RunAsync() {
void SystemMemoryGetInfoFunction::OnGetMemoryInfoCompleted(bool success) {
if (success)
- SetResult(MemoryInfoProvider::Get()->memory_info().ToValue().release());
+ SetResult(MemoryInfoProvider::Get()->memory_info().ToValue());
else
SetError("Error occurred when querying memory information.");
SendResponse(success);

Powered by Google App Engine
This is Rietveld 408576698