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

Side by Side Diff: chromeos/cryptohome/cryptohome_parameters.cc

Issue 2798023005: Force encryption migration if the device supports ARC. (Closed)
Patch Set: Created 3 years, 8 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 "chromeos/cryptohome/cryptohome_parameters.h" 5 #include "chromeos/cryptohome/cryptohome_parameters.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "chromeos/dbus/cryptohome/key.pb.h" 10 #include "chromeos/dbus/cryptohome/key.pb.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 Authorization::Authorization(const KeyDefinition& key_def) 224 Authorization::Authorization(const KeyDefinition& key_def)
225 : key(key_def.secret), 225 : key(key_def.secret),
226 label(key_def.label) { 226 label(key_def.label) {
227 } 227 }
228 228
229 bool Authorization::operator==(const Authorization& other) const { 229 bool Authorization::operator==(const Authorization& other) const {
230 return key == other.key && label == other.label; 230 return key == other.key && label == other.label;
231 } 231 }
232 232
233 MountParameters::MountParameters(bool ephemeral) : ephemeral(ephemeral) { 233 MountParameters::MountParameters(bool ephemeral)
234 } 234 : ephemeral(ephemeral), force_dircrypto_if_available(false) {}
xiyuan 2017/04/05 21:15:11 nit: put initialization in header
fukino 2017/04/06 14:22:17 Done.
235 235
236 MountParameters::MountParameters(const MountParameters& other) = default; 236 MountParameters::MountParameters(const MountParameters& other) = default;
237 237
238 bool MountParameters::operator==(const MountParameters& other) const { 238 bool MountParameters::operator==(const MountParameters& other) const {
239 return ephemeral == other.ephemeral && create_keys == other.create_keys; 239 return ephemeral == other.ephemeral && create_keys == other.create_keys;
240 } 240 }
241 241
242 MountParameters::~MountParameters() { 242 MountParameters::~MountParameters() {
243 } 243 }
244 244
(...skipping 10 matching lines...) Expand all
255 } // namespace cryptohome 255 } // namespace cryptohome
256 256
257 namespace BASE_HASH_NAMESPACE { 257 namespace BASE_HASH_NAMESPACE {
258 258
259 std::size_t hash<cryptohome::Identification>::operator()( 259 std::size_t hash<cryptohome::Identification>::operator()(
260 const cryptohome::Identification& cryptohome_id) const { 260 const cryptohome::Identification& cryptohome_id) const {
261 return hash<std::string>()(cryptohome_id.id()); 261 return hash<std::string>()(cryptohome_id.id());
262 } 262 }
263 263
264 } // namespace BASE_HASH_NAMESPACE 264 } // namespace BASE_HASH_NAMESPACE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698