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

Side by Side Diff: chrome/browser/chromeos/login/auth/mount_manager.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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"
8 #include "components/user_manager/user_manager.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
18 // static 18 // static
(...skipping 21 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698