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

Unified Diff: chrome/installer/util/l10n_string_util.cc

Issue 1492403002: Remove kuint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: http security header file Created 5 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/installer/util/l10n_string_util.cc
diff --git a/chrome/installer/util/l10n_string_util.cc b/chrome/installer/util/l10n_string_util.cc
index 96f2ce70d2c6213096385378f6940ec2d6fd1887..5d93814832193d810535267925241731bf756f4c 100644
--- a/chrome/installer/util/l10n_string_util.cc
+++ b/chrome/installer/util/l10n_string_util.cc
@@ -7,8 +7,10 @@
#include "chrome/installer/util/l10n_string_util.h"
#include <atlbase.h>
+#include <stdint.h>
#include <algorithm>
+#include <limits>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -89,7 +91,7 @@ std::wstring GetLocalizedEulaResource() {
// The cast is safe because url_path has limited length
// (see the definition of full_exe_path and resource).
- DCHECK(kuint32max > (url_path.size() * 3));
+ DCHECK(std::numeric_limits<uint32_t>::max() > (url_path.size() * 3));
DWORD count = static_cast<DWORD>(url_path.size() * 3);
scoped_ptr<wchar_t[]> url_canon(new wchar_t[count]);
HRESULT hr = ::UrlCanonicalizeW(url_path.c_str(), url_canon.get(),
« no previous file with comments | « chrome/browser/media_galleries/linux/snapshot_file_details.cc ('k') | extensions/browser/api/cast_channel/cast_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698