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

Unified Diff: chrome/browser/ui/webui/quota_internals_types.cc

Issue 10939010: Cleanup: avoid foo ? true : false, part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 3 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/ui/webui/quota_internals_types.cc
===================================================================
--- chrome/browser/ui/webui/quota_internals_types.cc (revision 159076)
+++ chrome/browser/ui/webui/quota_internals_types.cc (working copy)
@@ -87,7 +87,7 @@
dict->SetString("type", StorageTypeToString(type_));
dict->SetString("host", host_);
if (in_use_ >= 0)
- dict->SetBoolean("inUse", in_use_ ? true : false);
+ dict->SetBoolean("inUse", (in_use_ > 0));
if (used_count_ >= 0)
dict->SetInteger("usedCount", used_count_);
if (!last_access_time_.is_null())
« no previous file with comments | « chrome/browser/ui/views/create_application_shortcut_view.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698