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

Unified Diff: net/cookies/canonical_cookie.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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
« no previous file with comments | « net/cookies/canonical_cookie.h ('k') | net/cookies/cookie_constants_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/canonical_cookie.cc
diff --git a/net/cookies/canonical_cookie.cc b/net/cookies/canonical_cookie.cc
index fafb334b3f148a3db7b909a5332270c0418cd61b..2eead173bacb9065b532e2bf8831db5d00f151f4 100644
--- a/net/cookies/canonical_cookie.cc
+++ b/net/cookies/canonical_cookie.cc
@@ -44,7 +44,6 @@
#include "net/cookies/canonical_cookie.h"
-#include "base/basictypes.h"
#include "base/format_macros.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
@@ -194,7 +193,7 @@ Time CanonicalCookie::CanonExpiration(const ParsedCookie& pc,
const Time& current,
const Time& server_time) {
// First, try the Max-Age attribute.
- uint64 max_age = 0;
+ uint64_t max_age = 0;
if (pc.HasMaxAge() &&
#ifdef COMPILER_MSVC
sscanf_s(
@@ -432,11 +431,9 @@ bool CanonicalCookie::IncludeForRequestURL(const GURL& url,
std::string CanonicalCookie::DebugString() const {
return base::StringPrintf(
- "name: %s value: %s domain: %s path: %s creation: %"
- PRId64,
- name_.c_str(), value_.c_str(),
- domain_.c_str(), path_.c_str(),
- static_cast<int64>(creation_date_.ToTimeT()));
+ "name: %s value: %s domain: %s path: %s creation: %" PRId64,
+ name_.c_str(), value_.c_str(), domain_.c_str(), path_.c_str(),
+ static_cast<int64_t>(creation_date_.ToTimeT()));
}
bool CanonicalCookie::PartialCompare(const CanonicalCookie& other) const {
« no previous file with comments | « net/cookies/canonical_cookie.h ('k') | net/cookies/cookie_constants_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698