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

Side by Side Diff: mojo/services/network/net_adapters.cc

Issue 634713002: Implement parts of the Mojo TCP interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/services/network/net_adapters.h"
6
7 #include "net/base/net_errors.h"
8
9 namespace mojo {
10
11 NetworkErrorPtr MakeNetworkError(int error_code) {
12 NetworkErrorPtr error = NetworkError::New();
13 error->code = error_code;
14 if (error_code < 0)
yzshen1 2014/10/07 23:51:36 nit: <= 0
15 error->description = net::ErrorToString(error_code);
16 return error.Pass();
17 }
18
19 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698