diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:03:47 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:03:47 +0000 |
commit | 6775e40aeb887f15dc9182b250cdc4100aa79ce0 (patch) | |
tree | 858e3064689861a9ad85975154ce653418aaf3d8 /chrome/browser/extensions/extension_updater.cc | |
parent | 5bd8d1716b3f27664348c7fcb2c33f2e3a4573a7 (diff) | |
download | chromium_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 'chrome/browser/extensions/extension_updater.cc')
-rw-r--r-- | chrome/browser/extensions/extension_updater.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc index c15f77f..c4ab498 100644 --- a/chrome/browser/extensions/extension_updater.cc +++ b/chrome/browser/extensions/extension_updater.cc @@ -121,7 +121,7 @@ bool ManifestFetchData::AddExtension(std::string id, std::string version, // Check against our max url size, exempting the first extension added. int new_size = full_url_.possibly_invalid_spec().size() + extra.size(); - if (extension_ids_.size() > 0 && new_size > kExtensionsManifestMaxURLSize) { + if (!extension_ids_.empty() && new_size > kExtensionsManifestMaxURLSize) { UMA_HISTOGRAM_PERCENTAGE("Extensions.UpdateCheckHitUrlSizeLimit", 1); return false; } @@ -690,7 +690,7 @@ void ExtensionUpdater::OnCRXFetchComplete(const GURL& url, current_extension_fetch_ = ExtensionFetch(); // If there are any pending downloads left, start one. - if (extensions_pending_.size() > 0) { + if (!extensions_pending_.empty()) { ExtensionFetch next = extensions_pending_.front(); extensions_pending_.pop_front(); FetchUpdatedExtension(next.id, next.url, next.package_hash, next.version); |