forked from chromium/chromium-beta
25 lines
832 B
Diff
25 lines
832 B
Diff
--- a/components/variations/proto/study.proto
|
|
+++ b/components/variations/proto/study.proto
|
|
@@ -264,6 +264,9 @@
|
|
// A Mac-only value, indicating an x86-64 binary running on an arm64 host
|
|
// via "Rosetta 2" binary translation.
|
|
TRANSLATED_X86_64 = 4;
|
|
+
|
|
+ // A POSIX-only value, indicating an OpenPOWER host
|
|
+ PPC64 = 5;
|
|
}
|
|
|
|
// Enum to pass as optional bool.
|
|
--- a/components/variations/service/variations_field_trial_creator_base.cc
|
|
+++ b/components/variations/service/variations_field_trial_creator_base.cc
|
|
@@ -109,6 +109,9 @@
|
|
if (process_arch == "x86") {
|
|
return Study::X86_32;
|
|
}
|
|
+ if (process_arch == "PPC_64") {
|
|
+ return Study::PPC64;
|
|
+ }
|
|
if (process_arch == "x86_64") {
|
|
std::string os_arch = base::SysInfo::OperatingSystemArchitecture();
|
|
if (base::StartsWith(os_arch, "arm",
|