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

Unified Diff: chrome/browser/sync/glue/foreign_session_tracker.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
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl2.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/foreign_session_tracker.cc
diff --git a/chrome/browser/sync/glue/foreign_session_tracker.cc b/chrome/browser/sync/glue/foreign_session_tracker.cc
index 6db5c9cb385415521763ce2ac2400646a65706ed..e9bc9c68faef7445e350ff9448330db01a8e33d0 100644
--- a/chrome/browser/sync/glue/foreign_session_tracker.cc
+++ b/chrome/browser/sync/glue/foreign_session_tracker.cc
@@ -23,17 +23,14 @@ bool ForeignSessionTracker::LookupAllForeignSessions(
foreign_session_map_.begin(); i != foreign_session_map_.end(); ++i) {
// Only include sessions with open tabs.
ForeignSession* foreign_session = i->second;
- if (foreign_session->windows.size() > 0 &&
+ if (!foreign_session->windows.empty() &&
!SessionModelAssociator::SessionWindowHasNoTabsToSync(
*foreign_session->windows[0])) {
sessions->push_back(foreign_session);
}
}
- if (sessions->size() > 0)
- return true;
- else
- return false;
+ return !sessions->empty();
}
bool ForeignSessionTracker::LookupSessionWindows(
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl2.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698