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

Side by Side Diff: sync/internal_api/public/base/unique_position.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/internal_api/public/base/unique_position.h" 5 #include "sync/internal_api/public/base/unique_position.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <algorithm> 10 #include <algorithm>
8 #include <limits> 11 #include <limits>
9 12
10 #include "base/logging.h" 13 #include "base/logging.h"
11 #include "base/rand_util.h" 14 #include "base/rand_util.h"
12 #include "base/stl_util.h" 15 #include "base/stl_util.h"
13 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
14 #include "sync/protocol/unique_position.pb.h" 17 #include "sync/protocol/unique_position.pb.h"
15 #include "third_party/zlib/zlib.h" 18 #include "third_party/zlib/zlib.h"
16 19
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 return false; 624 return false;
622 } 625 }
623 } 626 }
624 } 627 }
625 // We don't bother looking for the existence or checking the validity of 628 // We don't bother looking for the existence or checking the validity of
626 // any partial blocks. There's no way they could be invalid anyway. 629 // any partial blocks. There's no way they could be invalid anyway.
627 return true; 630 return true;
628 } 631 }
629 632
630 } // namespace syncer 633 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/unique_position.h ('k') | sync/internal_api/public/base/unique_position_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698