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

Unified Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits Created 9 years, 10 months 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: chrome/browser/sync/profile_sync_service_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
index 14a404e1394faf0271aebcb932dd8cd5dac6e928..522671506ce1b4c52a026ed3be1a911ef921d81e 100644
--- a/chrome/browser/sync/profile_sync_service_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc
@@ -271,7 +271,7 @@ class FakeServerChange {
// of the changelist.
void SetModified(int64 id) {
// Coalesce multi-property edits.
- if (changes_.size() > 0 && changes_.back().id == id &&
+ if (!changes_.empty() && changes_.back().id == id &&
changes_.back().action ==
sync_api::SyncManager::ChangeRecord::ACTION_UPDATE)
return;
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698