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

Unified Diff: chrome/browser/chromeos/login/mount_manager.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 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: chrome/browser/chromeos/login/mount_manager.cc
diff --git a/chrome/browser/chromeos/login/mount_manager.cc b/chrome/browser/chromeos/login/mount_manager.cc
deleted file mode 100644
index 1a99519dd76840676ed02be4321d27345accd0cc..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/mount_manager.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/chromeos/login/mount_manager.h"
-
-#include "chrome/browser/chromeos/login/user_manager.h"
-#include "chrome/browser/chromeos/profiles/profile_helper.h"
-
-namespace chromeos {
-
-MountManager* MountManager::Get() {
- if (!instance_)
- instance_ = new MountManager();
- return instance_;
-}
-
-// static
-MountManager* MountManager::instance_ = NULL;
-
-base::FilePath MountManager::GetHomeDir(std::string& user_hash) {
- return ProfileHelper::GetProfilePathByUserIdHash(user_hash);
-}
-
-MountManager::MountManager() {}
-
-MountManager::~MountManager() {}
-
-bool MountManager::IsMounted(const std::string& user_id) {
- UserToPathMap::iterator i(additional_mounts_.find(user_id));
- return i != additional_mounts_.end();
-}
-
-base::FilePath MountManager::GetPath(const std::string& user_id) {
- UserToPathMap::iterator i(additional_mounts_.find(user_id));
- DCHECK(i != additional_mounts_.end());
- return (i == additional_mounts_.end()) ? base::FilePath() : i->second;
-}
-
-void MountManager::SetPath(const std::string& user_id,
- const base::FilePath& path) {
- additional_mounts_[user_id] = path;
-}
-
-void MountManager::DeletePath(const std::string& user_id) {
- additional_mounts_.erase(user_id);
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/mount_manager.h ('k') | chrome/browser/chromeos/login/multi_profile_user_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698