summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 21:03:47 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 21:03:47 +0000
commit6775e40aeb887f15dc9182b250cdc4100aa79ce0 (patch)
tree858e3064689861a9ad85975154ce653418aaf3d8 /net/url_request
parent5bd8d1716b3f27664348c7fcb2c33f2e3a4573a7 (diff)
downloadchromium_src-6775e40aeb887f15dc9182b250cdc4100aa79ce0.zip
chromium_src-6775e40aeb887f15dc9182b250cdc4100aa79ce0.tar.gz
chromium_src-6775e40aeb887f15dc9182b250cdc4100aa79ce0.tar.bz2
Change other usages of .size() to .empty() when applicable.
BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6609008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_job_tracker.cc2
-rw-r--r--net/url_request/url_request_throttler_entry.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/url_request/url_request_job_tracker.cc b/net/url_request/url_request_job_tracker.cc
index 49472d9..632d0a3 100644
--- a/net/url_request/url_request_job_tracker.cc
+++ b/net/url_request/url_request_job_tracker.cc
@@ -17,7 +17,7 @@ URLRequestJobTracker::URLRequestJobTracker() {
}
URLRequestJobTracker::~URLRequestJobTracker() {
- DLOG_IF(WARNING, active_jobs_.size() != 0) <<
+ DLOG_IF(WARNING, !active_jobs_.empty()) <<
"Leaking " << active_jobs_.size() << " URLRequestJob object(s), this "
"could be because the URLRequest forgot to free it (bad), or if the "
"program was terminated while a request was active (normal).";
diff --git a/net/url_request/url_request_throttler_entry.cc b/net/url_request/url_request_throttler_entry.cc
index 6db76c3..033787b 100644
--- a/net/url_request/url_request_throttler_entry.cc
+++ b/net/url_request/url_request_throttler_entry.cc
@@ -74,7 +74,7 @@ bool URLRequestThrottlerEntry::IsEntryOutdated() const {
// If there are send events in the sliding window period, we still need this
// entry.
- if (send_log_.size() > 0 &&
+ if (!send_log_.empty() &&
send_log_.back() + sliding_window_period_ > now) {
return false;
}