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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java

Issue 2566963002: Revert of Disable UI options that allow new tabs before FRE. (Closed)
Patch Set: Created 4 years 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/firstrun/FirstRunStatus.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
index ad5371d713bdc8714bb075862fdd440814286e5d..e62fdea030cc07beaa354821dd454a88745a2e15 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
@@ -21,9 +21,10 @@
/**
* Sets the "main First Run Experience flow complete" preference.
+ * @param context Any context
* @param isComplete Whether the main First Run Experience flow is complete
*/
- public static void setFirstRunFlowComplete(boolean isComplete) {
+ public static void setFirstRunFlowComplete(Context context, boolean isComplete) {
ContextUtils.getAppSharedPreferences()
.edit()
.putBoolean(FIRST_RUN_FLOW_COMPLETE, isComplete)
@@ -34,9 +35,11 @@
* Returns whether the main First Run Experience flow is complete.
* Note: that might NOT include "intro"/"what's new" pages, but it always
* includes ToS and Sign In pages if necessary.
+ * @param context Any context
*/
- public static boolean getFirstRunFlowComplete() {
- return ContextUtils.getAppSharedPreferences().getBoolean(FIRST_RUN_FLOW_COMPLETE, false);
+ public static boolean getFirstRunFlowComplete(Context context) {
+ return ContextUtils.getAppSharedPreferences()
+ .getBoolean(FIRST_RUN_FLOW_COMPLETE, false);
}
/**
@@ -51,15 +54,16 @@
/**
* Checks whether the welcome page should be skipped from the main First Run Experience.
*/
- public static boolean shouldSkipWelcomePage() {
+ public static boolean shouldSkipWelcomePage(Context context) {
return ContextUtils.getAppSharedPreferences().getBoolean(SKIP_WELCOME_PAGE, false);
}
/**
* Sets the "lightweight First Run Experience flow complete" preference.
+ * @param context Any context
* @param isComplete Whether the lightweight First Run Experience flow is complete
*/
- public static void setLightweightFirstRunFlowComplete(boolean isComplete) {
+ public static void setLightweightFirstRunFlowComplete(Context context, boolean isComplete) {
ContextUtils.getAppSharedPreferences()
.edit()
.putBoolean(LIGHTWEIGHT_FIRST_RUN_FLOW_COMPLETE, isComplete)
@@ -68,8 +72,9 @@
/**
* Returns whether the "lightweight First Run Experience flow" is complete.
+ * @param context Any context
*/
- public static boolean getLightweightFirstRunFlowComplete() {
+ public static boolean getLightweightFirstRunFlowComplete(Context context) {
return ContextUtils.getAppSharedPreferences().getBoolean(
LIGHTWEIGHT_FIRST_RUN_FLOW_COMPLETE, false);
}

Powered by Google App Engine
This is Rietveld 408576698