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

Unified Diff: tracing/tracing/ui/extras/drive/index.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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: tracing/tracing/ui/extras/drive/index.html
diff --git a/tracing/tracing/ui/extras/drive/index.html b/tracing/tracing/ui/extras/drive/index.html
index e01da3385ca7c97d07fdaf4b687108292ebff19f..8b043b37f73790fda823052b826b449cd2bde29e 100644
--- a/tracing/tracing/ui/extras/drive/index.html
+++ b/tracing/tracing/ui/extras/drive/index.html
@@ -186,8 +186,9 @@ found in the LICENSE file.
var tmp = [];
location.search.substr(1).split('&').forEach(function(item) {
tmp = item.split('=');
- if (tmp[0] === val)
+ if (tmp[0] === val) {
result = decodeURIComponent(tmp[1]);
+ }
});
return result;
}
@@ -221,15 +222,17 @@ found in the LICENSE file.
function onPickerApiLoad() {
pickerApiLoaded_ = true;
- if (fileIdToLoad_ === null)
+ if (fileIdToLoad_ === null) {
createPicker();
+ }
}
function onAuthResultSuccess() {
- if (fileIdToLoad_ === null)
+ if (fileIdToLoad_ === null) {
createPicker();
- else
+ } else {
loadFileFromDrive(fileIdToLoad_);
+ }
}
function handleAuthResult(authResult, wasImmediate, resultCallback) {
@@ -369,8 +372,9 @@ found in the LICENSE file.
}
function onRealtimeFileLoaded(doc) {
- if (driveDocument_)
+ if (driveDocument_) {
driveDocument_.close();
+ }
driveDocument_ = doc;
doc.addEventListener(gapi.drive.realtime.EventType.COLLABORATOR_JOINED,
displayAllCollaborators);
« no previous file with comments | « tracing/tracing/ui/extras/drive/comments_side_panel.html ('k') | tracing/tracing/ui/extras/side_panel/alerts_side_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698