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

Unified Diff: chrome/browser/managed_mode/managed_user_passphrase.h

Issue 15715005: Remove passphrase dialog and last parts of elevation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 7 years, 7 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/managed_mode/managed_user_passphrase.h
diff --git a/chrome/browser/managed_mode/managed_user_passphrase.h b/chrome/browser/managed_mode/managed_user_passphrase.h
deleted file mode 100644
index ded2575b7d86f76b69256f439ad0c60544dd0bbf..0000000000000000000000000000000000000000
--- a/chrome/browser/managed_mode/managed_user_passphrase.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_
-#define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-
-// This class can be used to derive a hash of a provided passphrase. When an
-// empty salt is given as parameter to the constructor, a new salt is
-// generated randomly, which can be accessed through the |GetSalt| method.
-class ManagedUserPassphrase {
- public:
- explicit ManagedUserPassphrase(const std::string& salt);
- ~ManagedUserPassphrase();
-
- std::string GetSalt();
-
- // This function generates a hash from a passphrase, which should be provided
- // as the first parameter. On return, the second parameter will contain the
- // Base64-encoded hash of the password.
- bool GenerateHashFromPassphrase(const std::string& passphrase,
- std::string* encoded_passphrase_hash) const;
-
- private:
- bool GetPassphraseHash(const std::string& passphrase,
- std::string* passphrase_hash) const;
- void GenerateRandomSalt();
-
- std::string salt_;
-
- DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphrase);
-};
-
-#endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_

Powered by Google App Engine
This is Rietveld 408576698