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/history | |
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/history')
-rw-r--r-- | chrome/browser/history/history_publisher_win.cc | 2 | ||||
-rw-r--r-- | chrome/browser/history/history_types.cc | 2 | ||||
-rw-r--r-- | chrome/browser/history/query_parser.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/history/history_publisher_win.cc b/chrome/browser/history/history_publisher_win.cc index 4aeb333..f54be58 100644 --- a/chrome/browser/history/history_publisher_win.cc +++ b/chrome/browser/history/history_publisher_win.cc @@ -105,7 +105,7 @@ bool HistoryPublisher::ReadRegisteredIndexersFromRegistry() { kRegKeyRegisteredIndexersInfo, &indexers_); AddRegisteredIndexers(HKEY_LOCAL_MACHINE, kRegKeyRegisteredIndexersInfo, &indexers_); - return indexers_.size() > 0; + return !indexers_.empty(); } void HistoryPublisher::PublishDataToIndexers(const PageData& page_data) diff --git a/chrome/browser/history/history_types.cc b/chrome/browser/history/history_types.cc index 65b1935..9f56ff0 100644 --- a/chrome/browser/history/history_types.cc +++ b/chrome/browser/history/history_types.cc @@ -174,7 +174,7 @@ const size_t* QueryResults::MatchesForURL(const GURL& url, // All entries in the map should have at least one index, otherwise it // shouldn't be in the map. - DCHECK(found->second->size() > 0); + DCHECK(!found->second->empty()); if (num_matches) *num_matches = found->second->size(); return &found->second->front(); diff --git a/chrome/browser/history/query_parser.cc b/chrome/browser/history/query_parser.cc index 1037b6c..a5447f6 100644 --- a/chrome/browser/history/query_parser.cc +++ b/chrome/browser/history/query_parser.cc @@ -245,7 +245,7 @@ QueryParser::QueryParser() { // static bool QueryParser::IsWordLongEnoughForPrefixSearch(const string16& word) { - DCHECK(word.size() > 0); + DCHECK(!word.empty()); size_t minimum_length = 3; // We intentionally exclude Hangul Jamos (both Conjoining and compatibility) // because they 'behave like' Latin letters. Moreover, we should |