|
@@ -6,6 +6,7 @@ More specifically, add a preference that causes all new tabs and all
|
|
|
clicked links to launch as incognito.
|
|
|
Make sure initial incognito status is correctly recognized.
|
|
|
Enable incognito custom tabs and fix crashes for incognito/custom tab intents (credits to @uazo)
|
|
|
+Enable autocomplete
|
|
|
---
|
|
|
chrome/android/chrome_java_sources.gni | 1 +
|
|
|
.../java/res/xml/privacy_preferences.xml | 5 ++
|
|
@@ -24,6 +25,7 @@ Enable incognito custom tabs and fix crashes for incognito/custom tab intents (c
|
|
|
.../tabmodel/TabModelSelectorImpl.java | 3 ++
|
|
|
.../browser/tabmodel/TabPersistentStore.java | 10 ++++
|
|
|
.../webapps/WebappIntentDataProvider.java | 14 +++++
|
|
|
+ .../chrome_autocomplete_provider_client.cc | 3 ++
|
|
|
.../host_content_settings_map_factory.cc | 16 +++++-
|
|
|
.../flags/android/chrome_feature_list.cc | 2 +-
|
|
|
chrome/browser/prefs/browser_prefs.cc | 3 ++
|
|
@@ -32,7 +34,7 @@ Enable incognito custom tabs and fix crashes for incognito/custom tab intents (c
|
|
|
.../snackbar/INeedSnackbarManager.java | 27 ++++++++++
|
|
|
chrome/common/pref_names.cc | 4 ++
|
|
|
chrome/common/pref_names.h | 5 ++
|
|
|
- 25 files changed, 241 insertions(+), 37 deletions(-)
|
|
|
+ 26 files changed, 244 insertions(+), 37 deletions(-)
|
|
|
create mode 100644 chrome/android/java/src/org/chromium/chrome/browser/AlwaysIncognitoLinkInterceptor.java
|
|
|
create mode 100644 chrome/browser/ui/messages/android/java/src/org/chromium/chrome/browser/ui/messages/snackbar/INeedSnackbarManager.java
|
|
|
|
|
@@ -565,6 +567,19 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappI
|
|
|
@Override
|
|
|
public @ScreenOrientationLockType.EnumType int getDefaultOrientation() {
|
|
|
return mWebappExtras.orientation;
|
|
|
+diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
|
|
+--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
|
|
++++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
|
|
+@@ -305,6 +305,9 @@ signin::IdentityManager* ChromeAutocompleteProviderClient::GetIdentityManager()
|
|
|
+ }
|
|
|
+
|
|
|
+ bool ChromeAutocompleteProviderClient::IsOffTheRecord() const {
|
|
|
++ if (profile_->GetPrefs()->GetBoolean(prefs::kAlwaysIncognitoEnabled)) {
|
|
|
++ return false;
|
|
|
++ }
|
|
|
+ return profile_->IsOffTheRecord();
|
|
|
+ }
|
|
|
+
|
|
|
diff --git a/chrome/browser/content_settings/host_content_settings_map_factory.cc b/chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
|
--- a/chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
|
+++ b/chrome/browser/content_settings/host_content_settings_map_factory.cc
|