| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/webui/options/managed_user_passphrase_handler.h" | 5 #include "chrome/browser/ui/webui/options/managed_user_passphrase_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 PrefService* pref_service = Profile::FromWebUI(web_ui())->GetPrefs(); | 67 PrefService* pref_service = Profile::FromWebUI(web_ui())->GetPrefs(); |
| 68 pref_service->SetString(prefs::kManagedModeLocalPassphrase, | 68 pref_service->SetString(prefs::kManagedModeLocalPassphrase, |
| 69 encoded_passphrase_hash); | 69 encoded_passphrase_hash); |
| 70 pref_service->SetString(prefs::kManagedModeLocalSalt, | 70 pref_service->SetString(prefs::kManagedModeLocalSalt, |
| 71 passphrase_key_generator.GetSalt()); | 71 passphrase_key_generator.GetSalt()); |
| 72 } | 72 } |
| 73 // TODO(akuegel): Give failure back to the UI. | 73 // TODO(akuegel): Give failure back to the UI. |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace options | 76 } // namespace options |
| OLD | NEW |