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

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

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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/socket/socket_api.cc
diff --git a/chrome/browser/extensions/api/socket/socket_api.cc b/chrome/browser/extensions/api/socket/socket_api.cc
index d0ae519c7b8c50ea8450de113b7b50063cfac00a..108ab87cc4bf757fa3ece1bc497b2d24c0a88bf5 100644
--- a/chrome/browser/extensions/api/socket/socket_api.cc
+++ b/chrome/browser/extensions/api/socket/socket_api.cc
@@ -120,13 +120,13 @@ bool SocketCreateFunction::Prepare() {
EXTENSION_FUNCTION_VALIDATE(params_.get());
switch (params_->type) {
- case extensions::api::socket::SOCKET_SOCKET_TYPE_TCP:
+ case extensions::api::socket::SOCKET_TYPE_TCP:
socket_type_ = kSocketTypeTCP;
break;
- case extensions::api::socket::SOCKET_SOCKET_TYPE_UDP:
+ case extensions::api::socket::SOCKET_TYPE_UDP:
socket_type_ = kSocketTypeUDP;
break;
- case extensions::api::socket::SOCKET_SOCKET_TYPE_NONE:
+ case extensions::api::socket::SOCKET_TYPE_NONE:
NOTREACHED();
break;
}
@@ -605,9 +605,9 @@ void SocketGetInfoFunction::Work() {
// This represents what we know about the socket, and does not call through
// to the system.
if (socket->GetSocketType() == Socket::TYPE_TCP)
- info.socket_type = extensions::api::socket::SOCKET_SOCKET_TYPE_TCP;
+ info.socket_type = extensions::api::socket::SOCKET_TYPE_TCP;
else
- info.socket_type = extensions::api::socket::SOCKET_SOCKET_TYPE_UDP;
+ info.socket_type = extensions::api::socket::SOCKET_TYPE_UDP;
info.connected = socket->IsConnected();
// Grab the peer address as known by the OS. This and the call below will

Powered by Google App Engine
This is Rietveld 408576698