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

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: 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..f275a7f4004f6d91457d2add5c1eec4b5c9d4d9a 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.
Alexei Svitkine (slow) 2017/04/19 21:42:57 Expand comment to mention this could return null i
Yusuf 2017/04/19 22:16:46 Done.
+ */
+ public String getLatestCountry() {
+ return nativeGetLatestCountry();
+ }
+
protected native void nativeStartVariationsSession(String restrictMode);
+ protected native String nativeGetLatestCountry();
}

Powered by Google App Engine
This is Rietveld 408576698