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

Unified Diff: chrome/browser/policy/browser_policy_connector.cc

Issue 24869003: cryptohome: Move stateless wrapper functions out of CryptohomeLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/policy/browser_policy_connector.cc
diff --git a/chrome/browser/policy/browser_policy_connector.cc b/chrome/browser/policy/browser_policy_connector.cc
index 28c2036d1ded7bd2a7961ad8a1112e7dad325222..24f043b33b7723d311ecec1bf65c57d20cea0962 100644
--- a/chrome/browser/policy/browser_policy_connector.cc
+++ b/chrome/browser/policy/browser_policy_connector.cc
@@ -134,12 +134,10 @@ BrowserPolicyConnector::BrowserPolicyConnector()
// CryptohomeLibrary or DBusThreadManager may be uninitialized on unit tests.
if (chromeos::CryptohomeLibrary::IsInitialized() &&
pneubeck (no reviews) 2013/09/27 08:59:25 this shouldn't be required anymore (update the com
satorux1 2013/10/01 05:24:03 This turned out to be necessary, as removing it wi
pneubeck (no reviews) 2013/10/01 09:05:08 ...how we love implicit dependencies...
chromeos::DBusThreadManager::IsInitialized()) {
- chromeos::CryptohomeLibrary* cryptohome =
- chromeos::CryptohomeLibrary::Get();
chromeos::CryptohomeClient* cryptohome_client =
chromeos::DBusThreadManager::Get()->GetCryptohomeClient();
install_attributes_.reset(
- new EnterpriseInstallAttributes(cryptohome, cryptohome_client));
+ new EnterpriseInstallAttributes(cryptohome_client));
base::FilePath install_attrs_file;
CHECK(PathService::Get(chromeos::FILE_INSTALL_ATTRIBUTES,
&install_attrs_file));

Powered by Google App Engine
This is Rietveld 408576698