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

Side by Side Diff: components/variations/variations_seed_store.cc

Issue 1564773002: Move components/compression to third_party/zlib/google (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another #include... Created 4 years, 11 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
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/variations/variations_seed_store.h" 5 #include "components/variations/variations_seed_store.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/numerics/safe_math.h" 12 #include "base/numerics/safe_math.h"
13 #include "base/prefs/pref_registry_simple.h" 13 #include "base/prefs/pref_registry_simple.h"
14 #include "base/prefs/pref_service.h" 14 #include "base/prefs/pref_service.h"
15 #include "base/sha1.h" 15 #include "base/sha1.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "components/compression/compression_utils.h"
19 #include "components/variations/pref_names.h" 18 #include "components/variations/pref_names.h"
20 #include "components/variations/proto/variations_seed.pb.h" 19 #include "components/variations/proto/variations_seed.pb.h"
21 #include "crypto/signature_verifier.h" 20 #include "crypto/signature_verifier.h"
22 #include "third_party/protobuf/src/google/protobuf/io/coded_stream.h" 21 #include "third_party/protobuf/src/google/protobuf/io/coded_stream.h"
22 #include "third_party/zlib/google/compression_utils.h"
23 23
24 #if defined(OS_ANDROID) 24 #if defined(OS_ANDROID)
25 #include "components/variations/android/variations_seed_bridge.h" 25 #include "components/variations/android/variations_seed_bridge.h"
26 #endif // OS_ANDROID 26 #endif // OS_ANDROID
27 27
28 namespace variations { 28 namespace variations {
29 29
30 namespace { 30 namespace {
31 31
32 // Signature verification is disabled on mobile platforms for now, since it 32 // Signature verification is disabled on mobile platforms for now, since it
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 } 544 }
545 return true; 545 return true;
546 } 546 }
547 547
548 void VariationsSeedStore::ReportUnsupportedSeedFormatError() { 548 void VariationsSeedStore::ReportUnsupportedSeedFormatError() {
549 RecordSeedStoreHistogram( 549 RecordSeedStoreHistogram(
550 VARIATIONS_SEED_STORE_FAILED_UNSUPPORTED_SEED_FORMAT); 550 VARIATIONS_SEED_STORE_FAILED_UNSUPPORTED_SEED_FORMAT);
551 } 551 }
552 552
553 } // namespace variations 553 } // namespace variations
OLDNEW
« no previous file with comments | « components/variations/service/BUILD.gn ('k') | components/variations/variations_seed_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698