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

Unified Diff: base/time.h

Issue 9055001: Change code in base (primarily unit tests) to use Sleep(TimeDelta). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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: base/time.h
diff --git a/base/time.h b/base/time.h
index 8590e993555380faec730a17dfd7f9d93fb3450a..a1aa0399bb3d7d3113532a93b657c2d13ee75496 100644
--- a/base/time.h
+++ b/base/time.h
@@ -101,18 +101,18 @@ class BASE_EXPORT TimeDelta {
}
// Computations with other deltas.
- TimeDelta operator+(TimeDelta other) const {
+ TimeDelta operator+(const TimeDelta other) const {
brettw 2011/12/31 17:52:06 Why did you change these lines? It seems like it d
return TimeDelta(delta_ + other.delta_);
}
- TimeDelta operator-(TimeDelta other) const {
+ TimeDelta operator-(const TimeDelta other) const {
return TimeDelta(delta_ - other.delta_);
}
- TimeDelta& operator+=(TimeDelta other) {
+ TimeDelta& operator+=(const TimeDelta other) {
delta_ += other.delta_;
return *this;
}
- TimeDelta& operator-=(TimeDelta other) {
+ TimeDelta& operator-=(const TimeDelta other) {
delta_ -= other.delta_;
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698