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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_history.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 years, 6 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/chromeos/chromevox/chromevox/injected/navigation_history.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_history.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_history.js
index 968564cdc271518f76e4be0357792fe34e79548f..b092904152138a743bbb948d194569c56931af07 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_history.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_history.js
@@ -74,8 +74,7 @@ cvox.NavigationHistory.prototype.update = function(newNode) {
}
// If list is too long, pop the last (oldest) item.
- if (this.history_.length >
- cvox.NavigationHistory.MAX_HISTORY_LEN_) {
+ if (this.history_.length > cvox.NavigationHistory.MAX_HISTORY_LEN_) {
this.history_.pop();
}
@@ -100,7 +99,7 @@ cvox.NavigationHistory.prototype.becomeInvalid = function(node) {
// changing very quickly. Be defensive here and allow the default
// navigation action by returning true.
if (!this.arrivedValid_) {
- this.arrivedValid_ = true; // Reset flag.
+ this.arrivedValid_ = true; // Reset flag.
return false;
}

Powered by Google App Engine
This is Rietveld 408576698