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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/metrics/VariationsSession.java

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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/metrics/VariationsSession.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/metrics/VariationsSession.java b/chrome/android/java/src/org/chromium/chrome/browser/metrics/VariationsSession.java
index a171ca0041e19032c1b86ae03f5716b2cd3cfa3d..8872a9ff950e9c7ab2040d6f54148c8e75d392ad 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/metrics/VariationsSession.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/metrics/VariationsSession.java
@@ -69,5 +69,13 @@ public class VariationsSession {
callback.onResult("");
}
+ /**
+ * @return The latest country according to the current variations state. Null if not known.
+ */
+ public String getLatestCountry() {
+ return nativeGetLatestCountry();
+ }
+
protected native void nativeStartVariationsSession(String restrictMode);
+ protected native String nativeGetLatestCountry();
}

Powered by Google App Engine
This is Rietveld 408576698