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