Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / mac / security_wrappers.h
blob4713b4b0de4a0be3ef0392b7a8b0f46a4db38e07
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.
5 #ifndef CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
6 #define CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
8 #include <CoreFoundation/CFBase.h>
10 #include "base/macros.h"
12 namespace chrome {
14 // Wraps SecKeychainSetUserInteractionAllowed, restoring the previous setting
15 // on destruction.
16 class ScopedSecKeychainSetUserInteractionAllowed {
17 public:
18 explicit ScopedSecKeychainSetUserInteractionAllowed(Boolean allowed);
19 ~ScopedSecKeychainSetUserInteractionAllowed();
21 private:
22 Boolean old_allowed_;
24 DISALLOW_COPY_AND_ASSIGN(ScopedSecKeychainSetUserInteractionAllowed);
27 } // namespace chrome
29 #endif // CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_