Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / sync / internal_api / public / base / invalidation_interface.cc
blob0284170837858e07cc2469aa0869f9a850a6c72f
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
3 // found in the LICENSE file.
5 #include "sync/internal_api/public/base/invalidation_interface.h"
7 namespace syncer {
9 bool InvalidationInterface::LessThanByVersion(const InvalidationInterface& a,
10 const InvalidationInterface& b) {
11 if (a.IsUnknownVersion() && !b.IsUnknownVersion())
12 return true;
14 if (!a.IsUnknownVersion() && b.IsUnknownVersion())
15 return false;
17 if (a.IsUnknownVersion() && b.IsUnknownVersion())
18 return false;
20 return a.GetVersion() < b.GetVersion();
23 InvalidationInterface::InvalidationInterface() {
26 InvalidationInterface::~InvalidationInterface() {
29 } // namespace syncer