Commit 12d46b9a authored by jianli's avatar jianli Committed by Commit bot

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}
parent 4337d5d3
...@@ -9,6 +9,7 @@ import android.os.Bundle; ...@@ -9,6 +9,7 @@ import android.os.Bundle;
import android.view.WindowManager; import android.view.WindowManager;
import org.chromium.chrome.R; 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;
import org.chromium.chrome.browser.snackbar.SnackbarManager.SnackbarManageable; import org.chromium.chrome.browser.snackbar.SnackbarManager.SnackbarManageable;
import org.chromium.components.bookmarks.BookmarkId; import org.chromium.components.bookmarks.BookmarkId;
...@@ -35,7 +36,9 @@ public class EnhancedBookmarkActivity extends EnhancedBookmarkActivityBase imple ...@@ -35,7 +36,9 @@ public class EnhancedBookmarkActivity extends EnhancedBookmarkActivityBase imple
mSnackbarManager = new SnackbarManager(getWindow()); mSnackbarManager = new SnackbarManager(getWindow());
mBookmarkManager = new EnhancedBookmarkManager(this); mBookmarkManager = new EnhancedBookmarkManager(this);
setContentView(mBookmarkManager.getView()); 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 // Hack to work around inferred theme false lint error: http://crbug.com/445633
assert (R.layout.eb_main_content != 0); assert (R.layout.eb_main_content != 0);
......
...@@ -1886,6 +1886,9 @@ Just open Chrome on your computer, go to the menu, and select “Sign in to Chro ...@@ -1886,6 +1886,9 @@ Just open Chrome on your computer, go to the menu, and select “Sign in to Chro
<message name="IDS_OFFLINE_PAGES_PAGE_FAILED_TO_SAVE_STORAGE_NEAR_FULL" desc="Message shown after a page was saved as a bookmark, but an offline copy was not created due to storage problem."> <message name="IDS_OFFLINE_PAGES_PAGE_FAILED_TO_SAVE_STORAGE_NEAR_FULL" desc="Message shown after a page was saved as a bookmark, but an offline copy was not created due to storage problem.">
Saved page not available offline. Storage almost full. Saved page not available offline. Storage almost full.
</message> </message>
<message name="IDS_OFFLINE_PAGES_SAVED_PAGES" desc="Title in recent tasks list for showing the list of web pages that have been saved.">
Saved pages
</message>
<message name="IDS_OFFLINE_PAGES_STORAGE_SPACE_TITLE" desc="Title of the promo header for managing offline pages storage. [CHAR-LIMIT=32]"> <message name="IDS_OFFLINE_PAGES_STORAGE_SPACE_TITLE" desc="Title of the promo header for managing offline pages storage. [CHAR-LIMIT=32]">
Storage space Storage space
</message> </message>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment