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

Unified Diff: headless/lib/headless_content_client.cc

Issue 2720673003: [headless] Use version for product name and user agent. (Closed)
Patch Set: use headless/public/version.h instead. Created 3 years, 10 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 | « headless/lib/headless_content_client.h ('k') | headless/public/headless_browser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/headless_content_client.cc
diff --git a/headless/lib/headless_content_client.cc b/headless/lib/headless_content_client.cc
index 4269da62f0d21339e3bd71dcf43cf51609deacb3..333f43a6ac95189ee3ad140a973eac9314ad3c8e 100644
--- a/headless/lib/headless_content_client.cc
+++ b/headless/lib/headless_content_client.cc
@@ -14,6 +14,10 @@ HeadlessContentClient::HeadlessContentClient(HeadlessBrowser::Options* options)
HeadlessContentClient::~HeadlessContentClient() {}
+std::string HeadlessContentClient::GetProduct() const {
+ return options_->product_name_and_version;
+}
+
std::string HeadlessContentClient::GetUserAgent() const {
return options_->user_agent;
}
« no previous file with comments | « headless/lib/headless_content_client.h ('k') | headless/public/headless_browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698