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

Side by Side Diff: blimp/common/version_info.cc.version

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Route EndConnection to OnConnectionError notifications Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 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 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 "blimp/common/blob_cache/test_util.h" 5 #include "blimp/common/version_info.h"
6 6
7 namespace blimp { 7 namespace blimp {
8 8
9 BlobDataPtr CreateBlobDataPtr(const std::string& data) { 9 int GetProtocolVersion() {
10 return new BlobData(data); 10 return @BUILD@;
11 }
12
13 std::string GetBuildVersion() {
14 return "@MAJOR@.@MINOR@.@BUILD@.@PATCH@";
11 } 15 }
12 16
13 } // namespace blimp 17 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698