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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java

Issue 2664053002: Add PhysicalWeb.hasPrerequisites()
Patch Set: Add javadoc Created 3 years, 11 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java
index 8bf871ae9981ea7933c1488111a26b29fde7411f..92a91f5d065cc44276db55c6d3edeec1055d37e6 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java
@@ -354,10 +354,8 @@ public class PrivacyPreferencesManager implements CrashReportingPermissionManage
int state = enabled ? PHYSICAL_WEB_ON : PHYSICAL_WEB_OFF;
boolean isOnboarding = isPhysicalWebOnboarding();
mSharedPreferences.edit().putInt(PREF_PHYSICAL_WEB, state).apply();
- if (enabled) {
- if (!isOnboarding) {
- PhysicalWeb.startPhysicalWeb();
- }
+ if (PhysicalWeb.hasPrerequisites()) {
+ PhysicalWeb.startPhysicalWeb();
} else {
PhysicalWeb.stopPhysicalWeb();
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698