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

Unified Diff: chrome/browser/mac/keychain_reauthorize.h

Issue 183713003: Remove keychain_reauthorize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | chrome/browser/mac/keychain_reauthorize.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mac/keychain_reauthorize.h
diff --git a/chrome/browser/mac/keychain_reauthorize.h b/chrome/browser/mac/keychain_reauthorize.h
deleted file mode 100644
index b50a4195e3234e7c00ee0551df2fbb68c9e2ae70..0000000000000000000000000000000000000000
--- a/chrome/browser/mac/keychain_reauthorize.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 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_MAC_KEYCHAIN_REAUTHORIZE_H_
-#define CHROME_BROWSER_MAC_KEYCHAIN_REAUTHORIZE_H_
-
-#ifdef __OBJC__
-@class NSString;
-#else
-class NSString;
-#endif
-
-namespace chrome {
-
-// Reauthorizes all Keychain items that can be found in a standard Keychain
-// search, as long as they are accessible and can be decrypted. This operates
-// by scanning the requirement strings for each application in each ACL in
-// each accessible Keychain item. If any requirement string matches a list of
-// strings to perform reauthorization for, the matching application in the ACL
-// will be replaced with this application, using this application's designated
-// requirement as the requirement string. Keychain items that are reauthorized
-// are made effective by deleting the original item and storing the new one
-// with its revised access policy in the Keychain. This circuitous method is
-// used because applications don't generally have permission to modify access
-// control policies on existing Keychain items (even when they are able to
-// decrypt those items), but any application can remove a Keychain item.
-void KeychainReauthorize();
-
-// Calls KeychainReauthorize, but only if it's determined that it's necessary.
-// pref_key is looked up in the system's standard user defaults (preferences)
-// and if its integer value is less than max_tries, KeychainReauthorize is
-// attempted. Before the attempt, the preference is incremented, allowing a
-// finite number of incomplete attempts at performing the KeychainReauthorize
-// operation. When the step completes successfully, the preference is set to
-// max_tries to prevent further attempts, and the preference name with the
-// word "Success" appended is also stored with a boolean value of YES,
-// disambiguating between the cases where the step completed successfully and
-// the step completed unsuccessfully while reaching the maximum number of
-// tries.
-//
-// The system's standard user defaults for the application are used
-// (~/Library/Preferences/com.google.Chrome.plist,
-// com.google.Chrome.canary.plist, etc.) instead of Chrome preferences because
-// Keychain access is tied more closely to the bundle identifier and signed
-// product than it is to any specific profile (--user-data-dir).
-void KeychainReauthorizeIfNeeded(NSString* pref_key, int max_tries);
-
-} // namespace chrome
-
-#endif // CHROME_BROWSER_MAC_KEYCHAIN_REAUTHORIZE_H_
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | chrome/browser/mac/keychain_reauthorize.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698