summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 23:18:21 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 23:18:21 +0000
commit0e6f619c41f85776a963a2bfb587ad64675554c4 (patch)
treedff81415834875ce943e6e4af882d676497d971b /chrome/browser/sync/util
parentdfa08b04cf8ee5a34972379f254061647313e2f0 (diff)
downloadchromium_src-0e6f619c41f85776a963a2bfb587ad64675554c4.zip
chromium_src-0e6f619c41f85776a963a2bfb587ad64675554c4.tar.gz
chromium_src-0e6f619c41f85776a963a2bfb587ad64675554c4.tar.bz2
Move net/base/sys_byteorder.h to base/sys_byteorder.h
Two motivations: (1) There are currently clients in src/crypto that need the same logic. (2) There is soon to be a client in src/chrome/common that needs the 64-bit version of this logic, which is currently inlined in a src/crypto implementation file. BUG=103480 TEST=compiles Review URL: http://codereview.chromium.org/8949026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/util')
-rw-r--r--chrome/browser/sync/util/nigori.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/sync/util/nigori.cc b/chrome/browser/sync/util/nigori.cc
index f8cffca..799a3f4 100644
--- a/chrome/browser/sync/util/nigori.cc
+++ b/chrome/browser/sync/util/nigori.cc
@@ -4,12 +4,6 @@
#include "chrome/browser/sync/util/nigori.h"
-#if defined(OS_WIN)
-#include <winsock2.h> // for htonl
-#else
-#include <arpa/inet.h>
-#endif
-
#include <sstream>
#include <vector>
@@ -17,6 +11,7 @@
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/string_util.h"
+#include "base/sys_byteorder.h"
#include "crypto/encryptor.h"
#include "crypto/hmac.h"