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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 "chromeos/dbus/cryptohome/key.pb.h" 7 #include "chromeos/dbus/cryptohome/key.pb.h"
8 8
9 namespace cryptohome { 9 namespace cryptohome {
10 10
11 Identification::Identification(const std::string& user_id) : user_id(user_id) { 11 Identification::Identification(const user_manager::UserID& user_id) : user_id(us er_id) {
12 } 12 }
13 13
14 bool Identification::operator==(const Identification& other) const { 14 bool Identification::operator==(const Identification& other) const {
15 return user_id == other.user_id; 15 return user_id == other.user_id;
16 } 16 }
17 17
18 KeyDefinition::AuthorizationData::Secret::Secret() : encrypt(false), 18 KeyDefinition::AuthorizationData::Secret::Secret() : encrypt(false),
19 sign(false), 19 sign(false),
20 wrapped(false) { 20 wrapped(false) {
21 } 21 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 bool MountParameters::operator==(const MountParameters& other) const { 177 bool MountParameters::operator==(const MountParameters& other) const {
178 return ephemeral == other.ephemeral && create_keys == other.create_keys; 178 return ephemeral == other.ephemeral && create_keys == other.create_keys;
179 } 179 }
180 180
181 MountParameters::~MountParameters() { 181 MountParameters::~MountParameters() {
182 } 182 }
183 183
184 } // namespace cryptohome 184 } // namespace cryptohome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698