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

Unified Diff: extensions/browser/api/cast_channel/logger.cc

Issue 859993002: Using "static_assert" in lieu of "COMPILE_ASSERT" in extensions module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | extensions/browser/api/declarative_webrequest/request_stage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/logger.cc
diff --git a/extensions/browser/api/cast_channel/logger.cc b/extensions/browser/api/cast_channel/logger.cc
index 0e31b8fe986f4ba0bd07dabd43fbde15d28f1480..9390210bdce6ab66961d4d0ea27d51731ca13cf9 100644
--- a/extensions/browser/api/cast_channel/logger.cc
+++ b/extensions/browser/api/cast_channel/logger.cc
@@ -76,7 +76,8 @@ scoped_ptr<char[]> Compress(const std::string& input, size_t* length) {
size_t out_size = deflateBound(&stream, input.size());
scoped_ptr<char[]> out(new char[out_size]);
- COMPILE_ASSERT(sizeof(uint8) == sizeof(char), uint8_char_different_sizes);
+ static_assert(sizeof(uint8) == sizeof(char),
+ "uint8 char should be of different sizes");
stream.next_in = reinterpret_cast<uint8*>(const_cast<char*>(input.data()));
stream.avail_in = input.size();
« no previous file with comments | « no previous file | extensions/browser/api/declarative_webrequest/request_stage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698