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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java

Issue 2354613005: Android: Reword the "leaving incognito" dialog. (Closed)
Patch Set: Bumped char limit to 32, since this text is longer now. Created 3 years, 9 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 | « no previous file | chrome/android/java/strings/android_chrome_strings.grd » ('j') | 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/externalnav/ExternalNavigationDelegateImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
index 492a25db1fa12bc8b27cb4a7f5eb24bd160d02ec..2d9a8352a67057fa60dac5325310ef2a593f039a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
@@ -384,31 +384,34 @@ public class ExternalNavigationDelegateImpl implements ExternalNavigationDelegat
Activity activity = (Activity) context;
new AlertDialog.Builder(activity, R.style.AlertDialogTheme)
- .setTitle(R.string.external_app_leave_incognito_warning_title)
- .setMessage(R.string.external_app_leave_incognito_warning)
- .setPositiveButton(R.string.ok, new OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- startActivity(intent, proxy);
- if (tab != null && !tab.isClosing() && tab.isInitialized()
- && needsToCloseTab) {
- closeTab(tab);
- }
- }
- })
- .setNegativeButton(R.string.cancel, new OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- loadIntent(intent, referrerUrl, fallbackUrl, tab, needsToCloseTab, true);
- }
- })
- .setOnCancelListener(new OnCancelListener() {
+ .setTitle(R.string.external_app_leave_incognito_warning_title)
+ .setMessage(R.string.external_app_leave_incognito_warning)
+ .setPositiveButton(R.string.external_app_leave_incognito_leave,
+ new OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ startActivity(intent, proxy);
+ if (tab != null && !tab.isClosing() && tab.isInitialized()
+ && needsToCloseTab) {
+ closeTab(tab);
+ }
+ }
+ })
+ .setNegativeButton(R.string.external_app_leave_incognito_stay,
+ new OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ loadIntent(intent, referrerUrl, fallbackUrl, tab, needsToCloseTab,
+ true);
+ }
+ })
+ .setOnCancelListener(new OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
loadIntent(intent, referrerUrl, fallbackUrl, tab, needsToCloseTab, true);
}
})
- .show();
+ .show();
}
@Override
« no previous file with comments | « no previous file | chrome/android/java/strings/android_chrome_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698