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

Unified Diff: extensions/browser/api/system_cpu/system_cpu_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_cpu/system_cpu_api.cc
diff --git a/extensions/browser/api/system_cpu/system_cpu_api.cc b/extensions/browser/api/system_cpu/system_cpu_api.cc
index 5cfe69b0ff4cd6b99bd37db9b22fd0e7e49eef5b..2e252388a19c97cb0cb9259020f098c554f87d0d 100644
--- a/extensions/browser/api/system_cpu/system_cpu_api.cc
+++ b/extensions/browser/api/system_cpu/system_cpu_api.cc
@@ -25,7 +25,7 @@ bool SystemCpuGetInfoFunction::RunAsync() {
void SystemCpuGetInfoFunction::OnGetCpuInfoCompleted(bool success) {
if (success)
- SetResult(CpuInfoProvider::Get()->cpu_info().ToValue().release());
+ SetResult(CpuInfoProvider::Get()->cpu_info().ToValue());
else
SetError("Error occurred when querying cpu information.");
SendResponse(success);

Powered by Google App Engine
This is Rietveld 408576698