From 12d46b9a6b55612973832cab73e2d9dca66d15f1 Mon Sep 17 00:00:00 2001 From: jianli Date: Mon, 14 Sep 2015 15:52:58 -0700 Subject: [PATCH] Update title shown in task switcher from Bookmarks to Saved pages BUG=491352 Review URL: https://codereview.chromium.org/1336883004 Cr-Commit-Position: refs/heads/master@{#348750} --- .../chrome/browser/enhancedbookmarks/EnhancedBookmarkActivity.java | 5 ++++- chrome/android/java/strings/android_chrome_strings.grd | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkActivity.java index 1a39fecc2468..60955aa76d33 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkActivity.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkActivity.java @@ -9,6 +9,7 @@ import android.os.Bundle; import android.view.WindowManager; import org.chromium.chrome.R; +import org.chromium.chrome.browser.offlinepages.OfflinePageBridge; import org.chromium.chrome.browser.snackbar.SnackbarManager; import org.chromium.chrome.browser.snackbar.SnackbarManager.SnackbarManageable; import org.chromium.components.bookmarks.BookmarkId; @@ -35,7 +36,9 @@ public class EnhancedBookmarkActivity extends EnhancedBookmarkActivityBase imple mSnackbarManager = new SnackbarManager(getWindow()); mBookmarkManager = new EnhancedBookmarkManager(this); setContentView(mBookmarkManager.getView()); - EnhancedBookmarkUtils.setTaskDescriptionInDocumentMode(this, getString(R.string.bookmarks)); + EnhancedBookmarkUtils.setTaskDescriptionInDocumentMode(this, getString( + OfflinePageBridge.isEnabled() ? R.string.offline_pages_saved_pages + : R.string.bookmarks)); // Hack to work around inferred theme false lint error: http://crbug.com/445633 assert (R.layout.eb_main_content != 0); diff --git a/chrome/android/java/strings/android_chrome_strings.grd b/chrome/android/java/strings/android_chrome_strings.grd index 88bbcb4b9cc4..f3ece22313a5 100644 --- a/chrome/android/java/strings/android_chrome_strings.grd +++ b/chrome/android/java/strings/android_chrome_strings.grd @@ -1886,6 +1886,9 @@ Just open Chrome on your computer, go to the menu, and select “Sign in to Chro Saved page not available offline. Storage almost full. + + Saved pages + Storage space -- 2.11.4.GIT