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

Side by Side Diff: chrome/browser/chromeos/cros/cryptohome_library.cc

Issue 1094009: Ensure that data doesn't leak between users on cros chrome crash. (Closed)
Patch Set: Make tests not use OTR Profile Created 10 years, 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cros/cryptohome_library.h" 5 #include "chrome/browser/chromeos/cros/cryptohome_library.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/chrome_thread.h" 8 #include "chrome/browser/chrome_thread.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 // static 11 // static
12 CryptohomeLibrary* CryptohomeLibrary::Get() { 12 CryptohomeLibrary* CryptohomeLibrary::Get() {
13 return Singleton<CryptohomeLibrary>::get(); 13 return Singleton<CryptohomeLibrary>::get();
14 } 14 }
15 15
16 bool CryptohomeLibrary::CheckKey(const std::string& user_email, 16 bool CryptohomeLibrary::CheckKey(const std::string& user_email,
17 const std::string& passhash) { 17 const std::string& passhash) {
18 return chromeos::CryptohomeCheckKey(user_email.c_str(), passhash.c_str()); 18 return chromeos::CryptohomeCheckKey(user_email.c_str(), passhash.c_str());
19 } 19 }
20 20
21 bool CryptohomeLibrary::Mount(const std::string& user_email, 21 bool CryptohomeLibrary::Mount(const std::string& user_email,
22 const std::string& passhash) { 22 const std::string& passhash) {
23 return chromeos::CryptohomeMount(user_email.c_str(), passhash.c_str()); 23 return chromeos::CryptohomeMount(user_email.c_str(), passhash.c_str());
24 } 24 }
25 25
26 bool CryptohomeLibrary::IsMounted() {
27 return chromeos::CryptohomeIsMounted();
28 }
29
26 } // namespace chromeos 30 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cryptohome_library.h ('k') | chrome/browser/chromeos/login/account_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698