| OLD | NEW |
| 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 "chrome/browser/chromeos/login/mount_manager.h" | 5 #include "chrome/browser/chromeos/login/auth/mount_manager.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/login/user_manager.h" | 7 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 8 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 8 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 MountManager* MountManager::Get() { | 12 MountManager* MountManager::Get() { |
| 13 if (!instance_) | 13 if (!instance_) |
| 14 instance_ = new MountManager(); | 14 instance_ = new MountManager(); |
| 15 return instance_; | 15 return instance_; |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 void MountManager::SetPath(const std::string& user_id, | 40 void MountManager::SetPath(const std::string& user_id, |
| 41 const base::FilePath& path) { | 41 const base::FilePath& path) { |
| 42 additional_mounts_[user_id] = path; | 42 additional_mounts_[user_id] = path; |
| 43 } | 43 } |
| 44 | 44 |
| 45 void MountManager::DeletePath(const std::string& user_id) { | 45 void MountManager::DeletePath(const std::string& user_id) { |
| 46 additional_mounts_.erase(user_id); | 46 additional_mounts_.erase(user_id); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace chromeos | 49 } // namespace chromeos |
| OLD | NEW |