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

Side by Side Diff: components/enhanced_bookmarks/item_position.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 "components/enhanced_bookmarks/item_position.h" 5 #include "components/enhanced_bookmarks/item_position.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h"
8 9
9 namespace { 10 namespace {
10 const unsigned kPositionBase = 64; 11 const unsigned kPositionBase = 64;
11 const char kPositionAlphabet[] = 12 const char kPositionAlphabet[] =
12 ".0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"; 13 ".0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";
13 } // namespace 14 } // namespace
14 15
15 namespace enhanced_bookmarks { 16 namespace enhanced_bookmarks {
16 17
17 ItemPosition::ItemPosition() { 18 ItemPosition::ItemPosition() {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 170
170 bool ItemPosition::Equals(const ItemPosition& other) const { 171 bool ItemPosition::Equals(const ItemPosition& other) const {
171 return position_ == other.position_; 172 return position_ == other.position_;
172 } 173 }
173 174
174 bool ItemPosition::LessThan(const ItemPosition& other) const { 175 bool ItemPosition::LessThan(const ItemPosition& other) const {
175 return position_ < other.position_; 176 return position_ < other.position_;
176 } 177 }
177 178
178 } // namespace enhanced_bookmarks 179 } // namespace enhanced_bookmarks
OLDNEW
« no previous file with comments | « components/enhanced_bookmarks/item_position.h ('k') | components/enhanced_bookmarks/persistent_image_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698