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

Unified Diff: chrome/browser/process_info_snapshot_mac.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/process_info_snapshot_mac.cc
diff --git a/chrome/browser/process_info_snapshot_mac.cc b/chrome/browser/process_info_snapshot_mac.cc
index 98216e025659a384d20afb87ff7368211141af03..10fc77b618bf47568df39ebaa7fe4ec472203f6a 100644
--- a/chrome/browser/process_info_snapshot_mac.cc
+++ b/chrome/browser/process_info_snapshot_mac.cc
@@ -249,7 +249,7 @@ static bool GetProcessMemoryInfoUsingTop(
if (in.fail())
break;
- if (unit.size() == 0)
+ if (unit.empty())
break;
uint64_t scale;
@@ -346,7 +346,7 @@ bool ProcessInfoSnapshot::Sample(std::vector<base::ProcessId> pid_list) {
Reset();
// Nothing to do if no PIDs given.
- if (pid_list.size() == 0)
+ if (pid_list.empty())
return true;
if (pid_list.size() > kMaxPidListSize) {
// The spec says |pid_list| *must* not have more than this many entries.

Powered by Google App Engine
This is Rietveld 408576698