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

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

Issue 10790070: Fixed namespace comments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/cookies/canonical_cookie.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 2148
2149 2149
2150 // The system resolution is not high enough, so we can have multiple 2150 // The system resolution is not high enough, so we can have multiple
2151 // set cookies that result in the same system time. When this happens, we 2151 // set cookies that result in the same system time. When this happens, we
2152 // increment by one Time unit. Let's hope computers don't get too fast. 2152 // increment by one Time unit. Let's hope computers don't get too fast.
2153 Time CookieMonster::CurrentTime() { 2153 Time CookieMonster::CurrentTime() {
2154 return std::max(Time::Now(), 2154 return std::max(Time::Now(),
2155 Time::FromInternalValue(last_time_seen_.ToInternalValue() + 1)); 2155 Time::FromInternalValue(last_time_seen_.ToInternalValue() + 1));
2156 } 2156 }
2157 2157
2158 } // namespace 2158 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/canonical_cookie.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698