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