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

Side by Side Diff: net/base/cookie_monster.cc

Issue 339059: Add compiler-specific "examine printf format" attributes to printfs. (Closed)
Patch Set: cleanups Created 11 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Portions of this code based on Mozilla: 5 // Portions of this code based on Mozilla:
6 // (netwerk/cookie/src/nsCookieService.cpp) 6 // (netwerk/cookie/src/nsCookieService.cpp)
7 /* ***** BEGIN LICENSE BLOCK ***** 7 /* ***** BEGIN LICENSE BLOCK *****
8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
9 * 9 *
10 * The contents of this file are subject to the Mozilla Public License Version 10 * The contents of this file are subject to the Mozilla Public License Version
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 // than the cookie path length, it's safe to index one byte past. 1165 // than the cookie path length, it's safe to index one byte past.
1166 if (path_.length() != url_path.length() && 1166 if (path_.length() != url_path.length() &&
1167 path_[path_.length() - 1] != '/' && 1167 path_[path_.length() - 1] != '/' &&
1168 url_path[path_.length()] != '/') 1168 url_path[path_.length()] != '/')
1169 return false; 1169 return false;
1170 1170
1171 return true; 1171 return true;
1172 } 1172 }
1173 1173
1174 std::string CookieMonster::CanonicalCookie::DebugString() const { 1174 std::string CookieMonster::CanonicalCookie::DebugString() const {
1175 return StringPrintf("name: %s value: %s path: %s creation: %llu", 1175 return StringPrintf("name: %s value: %s path: %s creation: %" PRId64,
1176 name_.c_str(), value_.c_str(), path_.c_str(), 1176 name_.c_str(), value_.c_str(), path_.c_str(),
1177 creation_date_.ToTimeT()); 1177 static_cast<int64>(creation_date_.ToTimeT()));
1178 } 1178 }
1179 1179
1180 } // namespace 1180 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698