Skip to content

Commit b3b81cc

Browse files
committed
change the argument to OneArgument()
1 parent 2bb2b58 commit b3b81cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/nw_window_api.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ void NwCurrentWindowInternalCapturePageInternalFunction::OnCaptureSuccess(const
414414
base::Base64Encode(stream_as_string, &base64_result);
415415
base64_result.insert(
416416
0, base::StringPrintf("data:%s;base64,", mime_type.c_str()));
417-
Respond(OneArgument(std::make_unique<base::Value>(base64_result)));
417+
Respond(OneArgument(base::Value::FromUniquePtrValue(std::make_unique<base::Value>(base64_result))));
418418
}
419419

420420
void NwCurrentWindowInternalCapturePageInternalFunction::OnCaptureFailure(FailureReason reason) {
@@ -983,7 +983,7 @@ NwCurrentWindowInternalGetPrintersFunction::Run() {
983983
void NwCurrentWindowInternalGetPrintersFunction::OnGetPrinterList(const printing::PrinterList& printer_list) {
984984
base::ListValue* printers = new base::ListValue();
985985
chrome::PrintersToValues(printer_list, printers);
986-
Respond(OneArgument(base::WrapUnique(printers)));
986+
Respond(OneArgument(base::Value::FromUniquePtrValue(base::WrapUnique(printers))));
987987
}
988988

989989
bool NwCurrentWindowInternalSetPrintSettingsInternalFunction::RunNWSync(base::ListValue* response, std::string* error) {

0 commit comments

Comments
 (0)