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

Unified Diff: blimp/client/session/assignment_source.cc

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: Add disconnection message and unit-tests Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | blimp/client/session/assignment_source_unittest.cc » ('j') | blimp/common/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/session/assignment_source.cc
diff --git a/blimp/client/session/assignment_source.cc b/blimp/client/session/assignment_source.cc
index f22e5543af848f42510e254a9e599676bae33beb..025d1edec443840dd400264f3e862cedc6346c8e 100644
--- a/blimp/client/session/assignment_source.cc
+++ b/blimp/client/session/assignment_source.cc
@@ -17,7 +17,7 @@
#include "base/task_runner_util.h"
#include "base/values.h"
#include "blimp/client/app/blimp_client_switches.h"
-#include "blimp/common/protocol_version.h"
+#include "blimp/common/version_info.h"
#include "components/safe_json/safe_json_parser.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
@@ -244,7 +244,7 @@ void AssignmentSource::QueryAssigner(const std::string& client_auth_token) {
// Write the JSON for the request data.
base::DictionaryValue dictionary;
- dictionary.SetString(kProtocolVersionKey, blimp::kEngineVersion);
+ dictionary.SetString(kProtocolVersionKey, GetAssignmentRequestVersion());
std::string json;
base::JSONWriter::Write(dictionary, &json);
url_fetcher_->SetUploadData("application/json", json);
« no previous file with comments | « no previous file | blimp/client/session/assignment_source_unittest.cc » ('j') | blimp/common/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698