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

Side by Side Diff: components/rappor/byte_vector_utils.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 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
« no previous file with comments | « components/proximity_auth/screenlock_bridge.h ('k') | components/safe_json/json_sanitizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/rappor/byte_vector_utils.h" 5 #include "components/rappor/byte_vector_utils.h"
6 6
7 #include <algorithm>
7 #include <string> 8 #include <string>
8 9
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/rand_util.h" 11 #include "base/rand_util.h"
11 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
12 #include "crypto/random.h" 13 #include "crypto/random.h"
13 14
14 namespace rappor { 15 namespace rappor {
15 16
16 namespace { 17 namespace {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 bytes_to_go -= n; 228 bytes_to_go -= n;
228 generated_bytes_ += n; 229 generated_bytes_ += n;
229 // Check max_number_of_bits_per_request from 10.1 Table 2 230 // Check max_number_of_bits_per_request from 10.1 Table 2
230 // max_number_of_bits_per_request == 2^19 bits == 2^16 bytes 231 // max_number_of_bits_per_request == 2^19 bits == 2^16 bytes
231 DCHECK_LT(generated_bytes_, 1U << 16); 232 DCHECK_LT(generated_bytes_, 1U << 16);
232 } 233 }
233 return bytes; 234 return bytes;
234 } 235 }
235 236
236 } // namespace rappor 237 } // namespace rappor
OLDNEW
« no previous file with comments | « components/proximity_auth/screenlock_bridge.h ('k') | components/safe_json/json_sanitizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698