| Index: crypto/encryptor.cc | 
| diff --git a/crypto/encryptor.cc b/crypto/encryptor.cc | 
| index 31a7cc830a45d0c4a65de0bfe65262437270793e..1c8dcf5c743714d19e3b9aa5543491e1673f2d35 100644 | 
| --- a/crypto/encryptor.cc | 
| +++ b/crypto/encryptor.cc | 
| @@ -21,14 +21,14 @@ Encryptor::Counter::~Counter() { | 
| } | 
|  | 
| bool Encryptor::Counter::Increment() { | 
| -  uint64 low_num = base::ntohll(counter_.components64[1]); | 
| +  uint64 low_num = base::NetToHost64(counter_.components64[1]); | 
| uint64 new_low_num = low_num + 1; | 
| -  counter_.components64[1] = base::htonll(new_low_num); | 
| +  counter_.components64[1] = base::HostToNet64(new_low_num); | 
|  | 
| // If overflow occured then increment the most significant component. | 
| if (new_low_num < low_num) { | 
| counter_.components64[0] = | 
| -        base::htonll(base::ntohll(counter_.components64[0]) + 1); | 
| +        base::HostToNet64(base::NetToHost64(counter_.components64[0]) + 1); | 
| } | 
|  | 
| // TODO(hclam): Return false if counter value overflows. | 
|  |