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

Side by Side Diff: chrome/browser/managed_mode/managed_user_passphrase.h

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 class ManagedUserPassphrase {
Pam (message me for reviews) 2013/01/07 14:51:49 Please add a brief class comment describing what t
13 public:
14 static void GenerateHashFromPassphrase(const std::string& passphrase,
Pam (message me for reviews) 2013/01/07 14:51:49 Please add a function comment describing what this
15 std::string* encoded_passphrase_hash);
Bernhard Bauer 2013/01/07 14:20:22 Please add some newlines here. At least before the
16 private:
17 static void GetPassphraseHash(const std::string& passphrase,
Bernhard Bauer 2013/01/07 14:20:22 You might want to change the interface to one meth
18 std::string* passphrase_hash);
Pam (message me for reviews) 2013/01/07 14:51:49 std::string is pretty lightweight, and actually OK
19 static const std::string kSalt_;
Bernhard Bauer 2013/01/07 14:20:22 As a rule of thumb, static and private should trig
20 ManagedUserPassphrase();
Bernhard Bauer 2013/01/07 14:20:22 See http://google-styleguide.googlecode.com/svn/tr
Bernhard Bauer 2013/01/07 14:20:22 I think at the moment there is no need for a const
21 ~ManagedUserPassphrase();
Pam (message me for reviews) 2013/01/07 14:51:49 As a style point, I normally expect to see the con
22 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphrase);
23 };
24
25 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698