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

Side by Side Diff: chromeos/dbus/cryptohome_client.cc

Issue 2912763003: cros: Prevent shut down on lid-close during migration. (Closed)
Patch Set: Only update if changed Created 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/dbus/cryptohome_client.h" 5 #include "chromeos/dbus/cryptohome_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // CryptohomeClient override. 82 // CryptohomeClient override.
83 void IsMounted(const BoolDBusMethodCallback& callback) override { 83 void IsMounted(const BoolDBusMethodCallback& callback) override {
84 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, 84 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface,
85 cryptohome::kCryptohomeIsMounted); 85 cryptohome::kCryptohomeIsMounted);
86 CallBoolMethod(&method_call, callback); 86 CallBoolMethod(&method_call, callback);
87 } 87 }
88 88
89 // CryptohomeClient override. 89 // CryptohomeClient override.
90 void Unmount(const BoolDBusMethodCallback& callback) override { 90 void Unmount(const BoolDBusMethodCallback& callback) override {
91 LOG(FATAL) << "unmount";
xiyuan 2017/05/31 15:00:53 Is this intentional?
dspaid 2017/05/31 22:51:06 Oops, unrelated debugging work I was doing.
91 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, 92 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface,
92 cryptohome::kCryptohomeUnmount); 93 cryptohome::kCryptohomeUnmount);
93 CallBoolMethod(&method_call, callback); 94 CallBoolMethod(&method_call, callback);
94 } 95 }
95 96
96 // CryptohomeClient override. 97 // CryptohomeClient override.
97 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, 98 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id,
98 const std::string& key, 99 const std::string& key,
99 const AsyncMethodCallback& callback) override { 100 const AsyncMethodCallback& callback) override {
100 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, 101 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface,
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 return new CryptohomeClientImpl(); 1296 return new CryptohomeClientImpl();
1296 } 1297 }
1297 1298
1298 // static 1299 // static
1299 std::string CryptohomeClient::GetStubSanitizedUsername( 1300 std::string CryptohomeClient::GetStubSanitizedUsername(
1300 const cryptohome::Identification& cryptohome_id) { 1301 const cryptohome::Identification& cryptohome_id) {
1301 return cryptohome_id.id() + kUserIdStubHashSuffix; 1302 return cryptohome_id.id() + kUserIdStubHashSuffix;
1302 } 1303 }
1303 1304
1304 } // namespace chromeos 1305 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc ('k') | chromeos/dbus/power_policy_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698