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

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

Issue 10010019: JS style nits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: couple more Created 8 years, 8 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 | « chrome/browser/resources/policy.js ('k') | chrome/browser/resources/sync_setup_overlay.js » ('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 5e6a3e49b65245b546b7bdac96c28605a065e2ec..61cceefcfc400a98da34f79d71822e33d608a6da 100644
--- a/chrome/browser/resources/sessions.js
+++ b/chrome/browser/resources/sessions.js
@@ -1,19 +1,19 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
localStrings = new LocalStrings();
// UTF8 sequence for an arrow triangle pointing down.
-kExpandedArrow = "\u25BE";
+kExpandedArrow = '\u25BE';
// UTF8 sequence for an arrow triangle pointing right.
-kCollapsedArrow = "\u25B8";
+kCollapsedArrow = '\u25B8';
/**
* Requests the list of sessions from the backend.
*/
function requestSessions() {
- chrome.send('requestSessionList', [])
+ chrome.send('requestSessionList');
}
/**
@@ -22,10 +22,10 @@ function requestSessions() {
function toggleExpandedState(div) {
if (div.textContent.indexOf(kExpandedArrow) != -1) {
div.textContent = div.textContent.replace(kExpandedArrow, kCollapsedArrow);
- div.parentNode.querySelector(".indent").hidden = true;
+ div.parentNode.querySelector('.indent').hidden = true;
} else {
div.textContent = div.textContent.replace(kCollapsedArrow, kExpandedArrow);
- div.parentNode.querySelector(".indent").hidden = false;
+ div.parentNode.querySelector('.indent').hidden = false;
}
}
@@ -71,7 +71,7 @@ function transformTab(tab) {
*/
function transformWindow(window) {
var windowDiv = document.createElement('div');
- windowDiv.className = "window";
+ windowDiv.className = 'window';
windowDiv.appendChild(createTitleDiv('window-title', 'Window'));
addItems(windowDiv, window.tabs, transformTab);
return windowDiv;
@@ -83,7 +83,7 @@ function transformWindow(window) {
function transformSession(session) {
var sessionDiv = document.createElement('div');
var sessionName = session.name.length == 0 ? 'Session' : session.name;
- sessionDiv.className = "session";
+ sessionDiv.className = 'session';
sessionDiv.appendChild(createTitleDiv('session-title', sessionName));
addItems(sessionDiv, session.windows, transformWindow);
return sessionDiv;
« no previous file with comments | « chrome/browser/resources/policy.js ('k') | chrome/browser/resources/sync_setup_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698