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

Side by Side Diff: chrome/browser/ui/webui/options/managed_user_passphrase_handler.cc

Issue 12217132: Revert 181898 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698