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

Unified Diff: extensions/browser/api/socket/socket_api.cc

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 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/socket/socket_api.cc
diff --git a/extensions/browser/api/socket/socket_api.cc b/extensions/browser/api/socket/socket_api.cc
index 4ec44356254c0ed788a48036f0ce8a4bcd718d48..e64c2724337b7299e0e08cec75a2a2c6f0c60609 100644
--- a/extensions/browser/api/socket/socket_api.cc
+++ b/extensions/browser/api/socket/socket_api.cc
@@ -362,7 +362,7 @@ void SocketDisconnectFunction::Work() {
socket->Disconnect(false /* socket_destroying */);
else
error_ = kSocketNotFoundError;
- SetResult(base::Value::CreateNullValue());
+ SetResult(base::MakeUnique<base::Value>());
}
bool SocketBindFunction::Prepare() {
« no previous file with comments | « device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc ('k') | extensions/browser/app_window/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698