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

Side by Side Diff: blimp/helium/revision_generator.cc

Issue 2602103002: Delete blimp/helium and remove references to it from dependent targets (Closed)
Patch Set: . Created 3 years, 11 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 | « blimp/helium/revision_generator.h ('k') | blimp/helium/revision_generator_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 "blimp/helium/revision_generator.h"
6
7 namespace blimp {
8 namespace helium {
9
10 base::LazyInstance<RevisionGenerator> RevisionGenerator::instance_ =
11 LAZY_INSTANCE_INITIALIZER;
12
13 const Revision& RevisionGenerator::GetNextRevision() {
14 DCHECK(sequence_checker_.CalledOnValidSequence())
15 << "GetNextRevision() must be called on the same sequenced thread.";
16 return ++revision_;
17 }
18
19 RevisionGenerator* RevisionGenerator::GetInstance() {
20 return instance_.Pointer();
21 }
22
23 Revision GetNextRevision() {
24 return RevisionGenerator::GetInstance()->GetNextRevision();
25 }
26
27 } // namespace helium
28 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/helium/revision_generator.h ('k') | blimp/helium/revision_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698