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

Unified Diff: chromeos/dbus/utils.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better condition in LOG_ASSERT in AccountId. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/utils.cc
diff --git a/chromeos/dbus/utils.cc b/chromeos/dbus/utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fc2eacdd66577b47341de8a73f3fc5852d05eafa
--- /dev/null
+++ b/chromeos/dbus/utils.cc
@@ -0,0 +1,17 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromeos/dbus/utils.h"
+
+#include "chromeos/cryptohome/cryptohome_parameters.h"
+#include "chromeos/dbus/cryptohome/rpc.pb.h"
+
+namespace chromeos {
+
+void FillIdentificationProtobuf(const cryptohome::Identification& id,
+ cryptohome::AccountIdentifier* id_proto) {
+ id_proto->set_account_id(id.id());
stevenjb 2016/02/23 19:27:34 Is there a reason this can't be a member of crypto
Alexander Alekseev 2016/02/24 09:27:42 What do you mean? AccountIdentifier is autogenerat
stevenjb 2016/02/24 17:25:43 Ah, I see. It is too bad that isn't namespaced so
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698