| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/gcm_driver/crypto/gcm_key_store.h" | 5 #include "components/gcm_driver/crypto/gcm_key_store.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <utility> | 9 #include <utility> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 10 #include "components/gcm_driver/crypto/p256_key_util.h" | 12 #include "components/gcm_driver/crypto/p256_key_util.h" |
| 11 #include "components/leveldb_proto/proto_database_impl.h" | 13 #include "components/leveldb_proto/proto_database_impl.h" |
| 12 #include "crypto/random.h" | 14 #include "crypto/random.h" |
| 13 | 15 |
| 14 namespace gcm { | 16 namespace gcm { |
| 15 | 17 |
| 16 // Statistics are logged to UMA with this string as part of histogram name. They | 18 // Statistics are logged to UMA with this string as part of histogram name. They |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 key_pairs_[entry.app_id()] = entry.keys(0); | 234 key_pairs_[entry.app_id()] = entry.keys(0); |
| 233 auth_secrets_[entry.app_id()] = entry.auth_secret(); | 235 auth_secrets_[entry.app_id()] = entry.auth_secret(); |
| 234 } | 236 } |
| 235 | 237 |
| 236 state_ = State::INITIALIZED; | 238 state_ = State::INITIALIZED; |
| 237 | 239 |
| 238 delayed_task_controller_.SetReady(); | 240 delayed_task_controller_.SetReady(); |
| 239 } | 241 } |
| 240 | 242 |
| 241 } // namespace gcm | 243 } // namespace gcm |
| OLD | NEW |