OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/variations/service/variations_service.h" | 5 #include "components/variations/service/variations_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 list_value->GetSize() == 2 && list_value->GetString(1, &stored_country); | 922 list_value->GetSize() == 2 && list_value->GetString(1, &stored_country); |
923 | 923 |
924 if (got_stored_country && stored_country == country_override) | 924 if (got_stored_country && stored_country == country_override) |
925 return false; | 925 return false; |
926 | 926 |
927 base::Version version(version_info::GetVersionNumber()); | 927 base::Version version(version_info::GetVersionNumber()); |
928 StorePermanentCountry(version, country_override); | 928 StorePermanentCountry(version, country_override); |
929 return true; | 929 return true; |
930 } | 930 } |
931 | 931 |
| 932 std::string VariationsService::GetLatestCountry() const { |
| 933 return local_state_->GetString(prefs::kVariationsCountry); |
| 934 } |
| 935 |
932 } // namespace variations | 936 } // namespace variations |
OLD | NEW |