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

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

Issue 322333004: sync: Inject sync/'s dependency on invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "sync/internal_api/public/base/invalidation_interface.h"
6
7 namespace syncer {
8
9 bool InvalidationInterface::LessThan(const InvalidationInterface& a,
tim (not reviewing) 2014/06/18 22:41:11 nit - It's a bit weird to define a non-overrideabl
rlarocque 2014/06/19 00:50:19 Will rename. I didn't like this either. The prob
rlarocque 2014/06/20 20:00:13 Done.
10 const InvalidationInterface& b) {
11 if (a.IsUnknownVersion() && !b.IsUnknownVersion())
12 return true;
13
14 if (!a.IsUnknownVersion() && b.IsUnknownVersion())
15 return false;
16
17 if (a.IsUnknownVersion() && b.IsUnknownVersion())
18 return false;
19
20 return a.GetVersion() < b.GetVersion();
21 }
22
23 InvalidationInterface::InvalidationInterface() {
24 }
25
26 InvalidationInterface::~InvalidationInterface() {
27 }
28
29 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698