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

Unified Diff: storage/browser/quota/quota_manager.cc

Issue 2581733002: Fix tautological comparison and add clang flag (Closed)
Patch Set: Remove clang warnings only when using clang Created 4 years 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 | « build/config/clang/BUILD.gn ('k') | third_party/openh264/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/quota_manager.cc
diff --git a/storage/browser/quota/quota_manager.cc b/storage/browser/quota/quota_manager.cc
index b0bef465428798c0cc56eea1e888995f81141c70..b7e20362a349a48744cb5f8cd9ce159bfda9e24b 100644
--- a/storage/browser/quota/quota_manager.cc
+++ b/storage/browser/quota/quota_manager.cc
@@ -81,12 +81,12 @@ const char QuotaManager::kEvictedOriginTimeSinceAccessHistogram[] =
namespace {
bool IsSupportedType(StorageType type) {
- return type != kStorageTypeTemporary || type != kStorageTypePersistent ||
- type != kStorageTypeSyncable;
+ return type == kStorageTypeTemporary || type == kStorageTypePersistent ||
+ type == kStorageTypeSyncable;
}
bool IsSupportedIncognitoType(StorageType type) {
- return type != kStorageTypeTemporary || type != kStorageTypePersistent;
+ return type == kStorageTypeTemporary || type == kStorageTypePersistent;
}
void CountOriginType(const std::set<GURL>& origins,
« no previous file with comments | « build/config/clang/BUILD.gn ('k') | third_party/openh264/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698