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

Unified Diff: chrome/browser/profile_resetter/profile_resetter.h

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 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
Index: chrome/browser/profile_resetter/profile_resetter.h
diff --git a/chrome/browser/profile_resetter/profile_resetter.h b/chrome/browser/profile_resetter/profile_resetter.h
index 2df678f6dc4fc3851b897bdce2228d04b442b591..b4044fad499b41de11c241bc0ceed85773a303ed 100644
--- a/chrome/browser/profile_resetter/profile_resetter.h
+++ b/chrome/browser/profile_resetter/profile_resetter.h
@@ -52,8 +52,8 @@ class ProfileResetter : public base::NonThreadSafe,
// Bit vector for Resettable enum.
typedef uint32 ResettableFlags;
- COMPILE_ASSERT(sizeof(ResettableFlags) == sizeof(Resettable),
- type_ResettableFlags_doesnt_match_Resettable);
+ static_assert(sizeof(ResettableFlags) == sizeof(Resettable),
+ "ResettableFlags should be the same size as Resettable");
explicit ProfileResetter(Profile* profile);
~ProfileResetter() override;
« no previous file with comments | « chrome/browser/prerender/prerender_origin.cc ('k') | chrome/browser/profile_resetter/profile_resetter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698