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

Unified Diff: chrome/browser/resources/md_history/synced_device_card.js

Issue 2203683002: MD History: Convert synced device collapse icon to a button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: chrome/browser/resources/md_history/synced_device_card.js
diff --git a/chrome/browser/resources/md_history/synced_device_card.js b/chrome/browser/resources/md_history/synced_device_card.js
index 89d9878dedbfdf753de9fdbe7229c7ea0eddf170..4e807781cab51ef016ee62d0b10d4a818dae5302 100644
--- a/chrome/browser/resources/md_history/synced_device_card.js
+++ b/chrome/browser/resources/md_history/synced_device_card.js
@@ -87,5 +87,14 @@ Polymer({
/** @private */
isWindowSeparatorIndex_: function(index, separatorIndexes) {
return this.separatorIndexes.indexOf(index) != -1;
- }
+ },
+
+ /**
+ * @param {boolean} cardOpen
+ * @return {string}
+ */
+ getCollapseTitle_: function(cardOpen) {
+ return cardOpen ? loadTimeData.getString('collapseSessionButton') :
+ loadTimeData.getString('expandSessionButton');
+ },
});
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_card.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698