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

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

Issue 790793008: chromeos: Remove unused private data members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/modem_messaging_client.cc » ('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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/threading/thread_restrictions.h" 12 #include "base/threading/thread_restrictions.h"
13 #include "chromeos/chromeos_paths.h" 13 #include "chromeos/chromeos_paths.h"
14 #include "chromeos/dbus/cryptohome/key.pb.h" 14 #include "chromeos/dbus/cryptohome/key.pb.h"
15 #include "chromeos/dbus/cryptohome/rpc.pb.h" 15 #include "chromeos/dbus/cryptohome/rpc.pb.h"
16 #include "third_party/cros_system_api/dbus/service_constants.h" 16 #include "third_party/cros_system_api/dbus/service_constants.h"
17 #include "third_party/protobuf/src/google/protobuf/io/coded_stream.h" 17 #include "third_party/protobuf/src/google/protobuf/io/coded_stream.h"
18 #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h" 18 #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h"
19 #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite .h" 19 #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite .h"
20 20
21 namespace chromeos { 21 namespace chromeos {
22 22
23 FakeCryptohomeClient::FakeCryptohomeClient() 23 FakeCryptohomeClient::FakeCryptohomeClient()
24 : service_is_available_(true), 24 : service_is_available_(true),
25 async_call_id_(1), 25 async_call_id_(1),
26 tpm_is_ready_counter_(0),
27 unmount_result_(true), 26 unmount_result_(true),
28 system_salt_(GetStubSystemSalt()), 27 system_salt_(GetStubSystemSalt()),
29 weak_ptr_factory_(this) { 28 weak_ptr_factory_(this) {
30 base::FilePath cache_path; 29 base::FilePath cache_path;
31 locked_ = PathService::Get(chromeos::FILE_INSTALL_ATTRIBUTES, &cache_path) && 30 locked_ = PathService::Get(chromeos::FILE_INSTALL_ATTRIBUTES, &cache_path) &&
32 base::PathExists(cache_path); 31 base::PathExists(cache_path);
33 } 32 }
34 33
35 FakeCryptohomeClient::~FakeCryptohomeClient() {} 34 FakeCryptohomeClient::~FakeCryptohomeClient() {}
36 35
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 FROM_HERE, 596 FROM_HERE,
598 base::Bind(async_call_status_data_handler_, 597 base::Bind(async_call_status_data_handler_,
599 async_call_id_, 598 async_call_id_,
600 true, 599 true,
601 std::string())); 600 std::string()));
602 } 601 }
603 ++async_call_id_; 602 ++async_call_id_;
604 } 603 }
605 604
606 } // namespace chromeos 605 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/modem_messaging_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698