[Chromecast] Refactor UserAgent
1) Move the GetUserAgent() into its own files. 2) Remove
unused |user_agent| in GCMDriverDesktop to reduce confusion.
Merge-With: eureka-internal/631073
Bug: b/192098277, b/191670403
Test: Log the user agent and verify it's the expected value. This CL
also passes internal CQ.
Change-Id: I0603482337a0117e4ab626233961849fea1a8b2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3059240
Commit-Queue: Guohui Deng <[email protected]>
Reviewed-by: Sean Topping <[email protected]>
Reviewed-by: Filip Gorski <[email protected]>
Cr-Commit-Position: refs/heads/master@{#909512}
diff --git a/chromecast/common/user_agent.h b/chromecast/common/user_agent.h
new file mode 100644
index 0000000..221bb22
--- /dev/null
+++ b/chromecast/common/user_agent.h
@@ -0,0 +1,16 @@
+// Copyright 2021 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_COMMON_USER_AGENT_H_
+#define CHROMECAST_COMMON_USER_AGENT_H_
+
+#include <string>
+
+namespace chromecast {
+
+std::string GetUserAgent();
+
+} // namespace chromecast
+
+#endif // CHROMECAST_COMMON_USER_AGENT_H_