update_engine: fixed remaining linter and some spelling errors
Fixed remaining errors from cpplint as well as some spelling errors
mostly in comments.
BUG=None
TEST=FEATURES=test emerge-link update_engine
Change-Id: I484988ab846ac5a3c68c016ddccfb247f225ec27
Reviewed-on: https://chromium-review.googlesource.com/208897
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/update_manager/chromeos_policy.cc b/update_manager/chromeos_policy.cc
index 98095bf..cba74e2 100644
--- a/update_manager/chromeos_policy.cc
+++ b/update_manager/chromeos_policy.cc
@@ -75,7 +75,7 @@
// chances of downloading from the URLs that appear earlier in the response
// (because download from a local server URL that appears earlier in a
// response is preferable than downloading from the next URL which could be
- // a internet URL and thus could be more expensive).
+ // an Internet URL and thus could be more expensive).
case ErrorCode::kError:
case ErrorCode::kDownloadTransferError:
case ErrorCode::kDownloadWriteError:
@@ -94,7 +94,7 @@
// regular retries at the next update check.
// 2. We have successfully downloaded the payload: In this case, the
// payload attempt number would have been incremented and would take care
- // of the backoff at the next update check.
+ // of the back-off at the next update check.
// In either case, there's no need to update URL index or failure count.
case ErrorCode::kOmahaRequestError:
case ErrorCode::kOmahaResponseHandlerError:
@@ -449,7 +449,7 @@
int interval = *server_dictated_poll_interval;
int fuzz = 0;
- // If no poll interval was dictated by server compute a backoff period,
+ // If no poll interval was dictated by server compute a back-off period,
// starting from a predetermined base periodic interval and increasing
// exponentially by the number of consecutive failed attempts.
if (interval == 0) {
@@ -465,11 +465,11 @@
}
}
- // We cannot backoff longer than the predetermined maximum interval.
+ // We cannot back off longer than the predetermined maximum interval.
if (interval > kTimeoutMaxBackoffInterval)
interval = kTimeoutMaxBackoffInterval;
- // We cannot backoff shorter than the predetermined periodic interval. Also,
+ // We cannot back off shorter than the predetermined periodic interval. Also,
// in this case set the fuzz to a predetermined regular value.
if (interval <= kTimeoutPeriodicInterval) {
interval = kTimeoutPeriodicInterval;