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

Side by Side Diff: components/variations/service/variations_service.cc

Issue 2828093002: Add plumbing for accessing latest country in variations service in Java (Closed)
Patch Set: nits Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « components/variations/service/variations_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/variations/service/variations_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698