| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_COCOA_KEYSTONE_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_COCOA_KEYSTONE_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_COCOA_KEYSTONE_INFOBAR_H_ | 6 #define CHROME_BROWSER_COCOA_KEYSTONE_INFOBAR_H_ |
| 7 | 7 |
| 8 class Profile; | 8 class Profile; |
| 9 | 9 |
| 10 class KeystoneInfoBar { | 10 class KeystoneInfoBar { |
| 11 public: | 11 public: |
| 12 // If the application is Keystone-enabled and not on a read-only filesystem | 12 // If the application is Keystone-enabled and not on a read-only filesystem |
| 13 // (capable of being auto-updated), and Keystone indicates that it needs | 13 // (capable of being auto-updated), and Keystone indicates that it needs |
| 14 // ticket promotion, PromotionInfoBar displays an info bar asking the user | 14 // ticket promotion, PromotionInfoBar displays an info bar asking the user |
| 15 // to promote the ticket. The user will need to authenticate in order to | 15 // to promote the ticket. The user will need to authenticate in order to |
| 16 // gain authorization to perform the promotion. The info bar is not shown | 16 // gain authorization to perform the promotion. The info bar is not shown |
| 17 // if its "don't ask" button was ever clicked, if the "don't check default | 17 // if its "don't ask" button was ever clicked, if the "don't check default |
| 18 // browser" command-line flag is present, on the very first launch, or if | 18 // browser" command-line flag is present, on the very first launch, or if |
| 19 // another info bar is already showing in the active tab. | 19 // another info bar is already showing in the active tab. |
| 20 static void PromotionInfoBar(Profile* profile); | 20 static void PromotionInfoBar(Profile* profile); |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 #endif // CHROME_BROWSER_COCOA_KEYSTONE_INFOBAR_H_ | 23 #endif // CHROME_BROWSER_COCOA_KEYSTONE_INFOBAR_H_ |
| OLD | NEW |