Removed incognito if always incognito mode is enabled
This commit is contained in:
parent
1115450959
commit
a229cdb7bd
1 changed files with 9 additions and 4 deletions
|
@ -5,6 +5,8 @@ Subject: Enable share intent
|
|||
This patch allows to activate the management of android.intent.action.SEND
|
||||
with new flag "shared-intent-ui" default active.
|
||||
|
||||
Removed incognito if always incognito mode is enabled
|
||||
|
||||
See also: https://github.com/bromite/bromite/issues/1062
|
||||
---
|
||||
chrome/android/chrome_java_resources.gni | 1 +
|
||||
|
@ -12,7 +14,7 @@ See also: https://github.com/bromite/bromite/issues/1062
|
|||
chrome/android/java/AndroidManifest.xml | 18 +++
|
||||
.../res/layout/sharing_intent_content.xml | 83 +++++++++++++
|
||||
.../init/ProcessInitializationHandler.java | 3 +
|
||||
.../SharedIntentShareActivity.java | 114 ++++++++++++++++++
|
||||
.../SharedIntentShareActivity.java | 117 ++++++++++++++++++
|
||||
chrome/browser/about_flags.cc | 4 +
|
||||
chrome/browser/flag_descriptions.cc | 5 +
|
||||
chrome/browser/flag_descriptions.h | 3 +
|
||||
|
@ -20,7 +22,7 @@ See also: https://github.com/bromite/bromite/issues/1062
|
|||
.../flags/android/chrome_feature_list.h | 1 +
|
||||
.../browser/flags/ChromeFeatureList.java | 1 +
|
||||
.../strings/android_chrome_strings.grd | 13 ++
|
||||
13 files changed, 251 insertions(+)
|
||||
13 files changed, 254 insertions(+)
|
||||
create mode 100644 chrome/android/java/res/layout/sharing_intent_content.xml
|
||||
create mode 100644 chrome/android/java/src/org/chromium/chrome/browser/sharing/shared_intent/SharedIntentShareActivity.java
|
||||
|
||||
|
@ -38,7 +40,7 @@ diff --git a/chrome/android/chrome_java_resources.gni b/chrome/android/chrome_ja
|
|||
diff --git a/chrome/android/chrome_java_sources.gni b/chrome/android/chrome_java_sources.gni
|
||||
--- a/chrome/android/chrome_java_sources.gni
|
||||
+++ b/chrome/android/chrome_java_sources.gni
|
||||
@@ -1048,6 +1048,7 @@ chrome_java_sources = [
|
||||
@@ -1047,6 +1047,7 @@ chrome_java_sources = [
|
||||
"java/src/org/chromium/chrome/browser/sharing/shared_clipboard/SharedClipboardMessageHandler.java",
|
||||
"java/src/org/chromium/chrome/browser/sharing/shared_clipboard/SharedClipboardMetrics.java",
|
||||
"java/src/org/chromium/chrome/browser/sharing/shared_clipboard/SharedClipboardShareActivity.java",
|
||||
|
@ -186,7 +188,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/sharing/shared_
|
|||
new file mode 100644
|
||||
--- /dev/null
|
||||
+++ b/chrome/android/java/src/org/chromium/chrome/browser/sharing/shared_intent/SharedIntentShareActivity.java
|
||||
@@ -0,0 +1,114 @@
|
||||
@@ -0,0 +1,117 @@
|
||||
+// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
|
@ -293,6 +295,9 @@ new file mode 100644
|
|||
+ finish();
|
||||
+ });
|
||||
+
|
||||
+ if (ContextUtils.getAppSharedPreferences().getBoolean("always_incognito", false))
|
||||
+ open_url_incognito_button.setVisibility(View.GONE);
|
||||
+
|
||||
+ onInitialLayoutInflationComplete();
|
||||
+ }
|
||||
+
|
||||
|
|
Loading…
Add table
Reference in a new issue