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

Side by Side Diff: rlz/lib/crc32_wrapper.cc

Issue 10659022: Revert 144071 - Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | « rlz/lib/crc32_unittest.cc ('k') | rlz/lib/crc8.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
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 // A wrapper around ZLib's CRC functions to put them in the rlz_lib namespace 5 // A wrapper around ZLib's CRC functions to put them in the rlz_lib namespace
6 // and use our types. 6 // and use our types.
7 7
8 #include "rlz/lib/assert.h" 8 #include "rlz/lib/assert.h"
9 #include "rlz/lib/crc32.h" 9 #include "rlz/lib/crc32.h"
10 #include "rlz/lib/string_utils.h" 10 #include "rlz/lib/string_utils.h"
(...skipping 16 matching lines...) Expand all
27 if (!IsAscii(text[i])) 27 if (!IsAscii(text[i]))
28 return false; 28 return false;
29 29
30 *crc = crc32(*crc, reinterpret_cast<const unsigned char*>(text + i), 1); 30 *crc = crc32(*crc, reinterpret_cast<const unsigned char*>(text + i), 1);
31 } 31 }
32 32
33 return true; 33 return true;
34 } 34 }
35 35
36 } // namespace rlz_lib 36 } // namespace rlz_lib
OLDNEW
« no previous file with comments | « rlz/lib/crc32_unittest.cc ('k') | rlz/lib/crc8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698