Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't include Android model by default #7200

Merged
merged 1 commit into from
Dec 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions patches/content-common-user_agent.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc
index a87ca565f8aa809a46086861c7057da013e9c911..ab271cb3020eb79fa34cd9d0c675aaecd01faad3 100644
--- a/content/common/user_agent.cc
+++ b/content/common/user_agent.cc
@@ -233,7 +233,7 @@ std::string BuildUserAgentFromProduct(const std::string& product) {
std::string os_info;
base::StringAppendF(&os_info, "%s%s", GetUserAgentPlatform().c_str(),
BuildOSCpuInfo(IncludeAndroidBuildNumber::Exclude,
- IncludeAndroidModel::Include)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it maybe be better to override HardwareModelName to some fixed value?

+ IncludeAndroidModel::Exclude)
.c_str());
return BuildUserAgentFromOSAndProduct(os_info, product);
}