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

Unified Diff: chrome/browser/resources/sessions.js

Issue 8590031: Added machine names to about:sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed quotation marks. Created 9 years, 1 month 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/browser/ui/webui/sessions_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sessions.js
diff --git a/chrome/browser/resources/sessions.js b/chrome/browser/resources/sessions.js
index 5c9e8bc2bdf75c55bbcdb95066acb87c475bc361..5e6a3e49b65245b546b7bdac96c28605a065e2ec 100644
--- a/chrome/browser/resources/sessions.js
+++ b/chrome/browser/resources/sessions.js
@@ -82,8 +82,9 @@ function transformWindow(window) {
*/
function transformSession(session) {
var sessionDiv = document.createElement('div');
+ var sessionName = session.name.length == 0 ? 'Session' : session.name;
sessionDiv.className = "session";
- sessionDiv.appendChild(createTitleDiv('session-title', 'Session'));
+ sessionDiv.appendChild(createTitleDiv('session-title', sessionName));
addItems(sessionDiv, session.windows, transformWindow);
return sessionDiv;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/sessions_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698