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

Side by Side Diff: components/sync/base/invalidation_interface.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/sync/base/invalidation_interface.h ('k') | components/sync/base/logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "sync/internal_api/public/base/invalidation_interface.h" 5 #include "components/sync/base/invalidation_interface.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 bool InvalidationInterface::LessThanByVersion(const InvalidationInterface& a, 9 bool InvalidationInterface::LessThanByVersion(const InvalidationInterface& a,
10 const InvalidationInterface& b) { 10 const InvalidationInterface& b) {
11 if (a.IsUnknownVersion() && !b.IsUnknownVersion()) 11 if (a.IsUnknownVersion() && !b.IsUnknownVersion())
12 return true; 12 return true;
13 13
14 if (!a.IsUnknownVersion() && b.IsUnknownVersion()) 14 if (!a.IsUnknownVersion() && b.IsUnknownVersion())
15 return false; 15 return false;
16 16
17 if (a.IsUnknownVersion() && b.IsUnknownVersion()) 17 if (a.IsUnknownVersion() && b.IsUnknownVersion())
18 return false; 18 return false;
19 19
20 return a.GetVersion() < b.GetVersion(); 20 return a.GetVersion() < b.GetVersion();
21 } 21 }
22 22
23 InvalidationInterface::InvalidationInterface() { 23 InvalidationInterface::InvalidationInterface() {}
24 }
25 24
26 InvalidationInterface::~InvalidationInterface() { 25 InvalidationInterface::~InvalidationInterface() {}
27 }
28 26
29 } // namespace syncer 27 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/base/invalidation_interface.h ('k') | components/sync/base/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698