Index: chromium-135.0.7049.52/components/country_codes/country_codes.cc
===================================================================
--- chromium-135.0.7049.52.orig/components/country_codes/country_codes.cc
+++ chromium-135.0.7049.52/components/country_codes/country_codes.cc
@@ -123,19 +123,7 @@ int CountryStringToCountryID(const std::
 }
 
 int GetCountryIDFromPrefs(PrefService* prefs) {
-  if (!prefs) {
-    return GetCurrentCountryID();
-  }
-
-  // Cache first run Country ID value in prefs, and use it afterwards.  This
-  // ensures that just because the user moves around, we won't automatically
-  // make major changes to their available search providers, which would feel
-  // surprising.
-  if (!prefs->HasPrefPath(country_codes::kCountryIDAtInstall)) {
-    prefs->SetInteger(country_codes::kCountryIDAtInstall,
-                      GetCurrentCountryID());
-  }
-  return prefs->GetInteger(country_codes::kCountryIDAtInstall);
+  return GetCurrentCountryID();
 }
 
 void RegisterProfilePrefs(PrefRegistrySimple* registry) {
@@ -185,7 +173,8 @@ int GetCurrentCountryID() {
 #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
 
 int GetCurrentCountryID() {
-  const char* locale = setlocale(LC_MESSAGES, nullptr);
+  const char* locale = getenv("LANG");
+
   if (!locale) {
     return kCountryIDUnknown;
   }
