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

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

Issue 1738023002: ChromeOS: Add RenameCryptohome and migration code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@462823--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part11--migrate-cryptohomes
Patch Set: Update after review. Created 4 years, 9 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
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/fake_cryptohome_client.h" 5 #include "chromeos/dbus/fake_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const AsyncMethodCallback& callback) { 86 const AsyncMethodCallback& callback) {
87 ReturnAsyncMethodResult(callback, false); 87 ReturnAsyncMethodResult(callback, false);
88 } 88 }
89 89
90 void FakeCryptohomeClient::AsyncRemove( 90 void FakeCryptohomeClient::AsyncRemove(
91 const cryptohome::Identification& cryptohome_id, 91 const cryptohome::Identification& cryptohome_id,
92 const AsyncMethodCallback& callback) { 92 const AsyncMethodCallback& callback) {
93 ReturnAsyncMethodResult(callback, false); 93 ReturnAsyncMethodResult(callback, false);
94 } 94 }
95 95
96 void FakeCryptohomeClient::RenameCryptohome(
97 const cryptohome::Identification& cryptohome_id_from,
98 const cryptohome::Identification& cryptohome_id_to,
99 const ProtobufMethodCallback& callback) {
100 cryptohome::BaseReply reply;
101 ReturnProtobufMethodCallback(reply, callback);
102 }
103
96 void FakeCryptohomeClient::GetSystemSalt( 104 void FakeCryptohomeClient::GetSystemSalt(
97 const GetSystemSaltCallback& callback) { 105 const GetSystemSaltCallback& callback) {
98 base::MessageLoop::current()->PostTask( 106 base::MessageLoop::current()->PostTask(
99 FROM_HERE, 107 FROM_HERE,
100 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, system_salt_)); 108 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, system_salt_));
101 } 109 }
102 110
103 void FakeCryptohomeClient::GetSanitizedUsername( 111 void FakeCryptohomeClient::GetSanitizedUsername(
104 const cryptohome::Identification& cryptohome_id, 112 const cryptohome::Identification& cryptohome_id,
105 const StringDBusMethodCallback& callback) { 113 const StringDBusMethodCallback& callback) {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 FROM_HERE, 608 FROM_HERE,
601 base::Bind(async_call_status_data_handler_, 609 base::Bind(async_call_status_data_handler_,
602 async_call_id_, 610 async_call_id_,
603 true, 611 true,
604 std::string())); 612 std::string()));
605 } 613 }
606 ++async_call_id_; 614 ++async_call_id_;
607 } 615 }
608 616
609 } // namespace chromeos 617 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698