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

Unified Diff: chrome/browser/external_protocol/external_protocol_handler.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/external_protocol/external_protocol_handler.cc
===================================================================
--- chrome/browser/external_protocol/external_protocol_handler.cc (revision 159076)
+++ chrome/browser/external_protocol/external_protocol_handler.cc (working copy)
@@ -233,8 +233,7 @@
if (state == UNKNOWN) {
update_excluded_schemas->Remove(scheme, NULL);
} else {
- update_excluded_schemas->SetBoolean(scheme,
- state == BLOCK ? true : false);
+ update_excluded_schemas->SetBoolean(scheme, (state == BLOCK));
}
}
}
« no previous file with comments | « chrome/browser/component_updater/component_updater_service.cc ('k') | chrome/browser/first_run/try_chrome_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698