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

Unified Diff: src/platform/cryptohome/cryptohomed.cc

Issue 2051003: Initial patch from Will. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Address style nits. Created 10 years, 7 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: src/platform/cryptohome/cryptohomed.cc
diff --git a/src/platform/cryptohome/cryptohomed.cc b/src/platform/cryptohome/cryptohomed.cc
index e089bb62d8e533ce56f1b84bd6c70874761390be..d72b5d35f805e15eab690be8946350b411e1fb28 100644
--- a/src/platform/cryptohome/cryptohomed.cc
+++ b/src/platform/cryptohome/cryptohomed.cc
@@ -21,12 +21,6 @@
namespace switches {
-// Specifies the mount command to call
-static const char *kMountSwitch = "mount";
-// Specifies the unmount command to call
-static const char *kUnmountSwitch = "unmount";
-// Specifies the is_mounted command to call
-static const char *kIsMountedSwitch = "is_mounted";
// Keeps std* open for debugging
static const char *kNoCloseOnDaemonize = "noclose";
} // namespace switches
@@ -47,21 +41,6 @@ int main(int argc, char **argv) {
int noclose = cl->HasSwitch(switches::kNoCloseOnDaemonize);
PLOG_IF(FATAL, daemon(0, noclose) == -1) << "Failed to daemonize";
- std::string mount_command = cl->GetSwitchValueASCII(switches::kMountSwitch);
- if (!mount_command.empty()) {
- service.set_mount_command(mount_command.c_str());
- }
- std::string unmount_command =
- cl->GetSwitchValueASCII(switches::kUnmountSwitch);
- if (!unmount_command.empty()) {
- service.set_unmount_command(unmount_command.c_str());
- }
- std::string is_mounted_command =
- cl->GetSwitchValueASCII(switches::kIsMountedSwitch);
- if (!is_mounted_command.empty()) {
- service.set_is_mounted_command(is_mounted_command.c_str());
- }
-
LOG_IF(FATAL, !service.Register(chromeos::dbus::GetSystemBusConnection()))
<< "Failed";
LOG_IF(FATAL, !service.Run()) << "Failed";

Powered by Google App Engine
This is Rietveld 408576698