Chromium Code Reviews| Index: chrome/browser/ui/views/outdated_upgrade_bubble_view.h |
| diff --git a/chrome/browser/ui/views/outdated_upgrade_bubble_view.h b/chrome/browser/ui/views/outdated_upgrade_bubble_view.h |
| index 7a66a6941230495449e9d3b0372747d2a0bcb247..8771c42d7f970b380f49548d8af2bbb3c8b26bf2 100644 |
| --- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.h |
| +++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.h |
| @@ -24,7 +24,8 @@ class OutdatedUpgradeBubbleView : public views::BubbleDelegateView, |
| public views::ButtonListener { |
| public: |
| static void ShowBubble(views::View* anchor_view, |
| - content::PageNavigator* navigator); |
| + content::PageNavigator* navigator, |
| + bool auto_update_on); |
| // Identifies if we are running a build that supports the |
| // outdated upgrade bubble view. |
| @@ -38,7 +39,8 @@ class OutdatedUpgradeBubbleView : public views::BubbleDelegateView, |
| private: |
| OutdatedUpgradeBubbleView(views::View* anchor_view, |
| - content::PageNavigator* navigator); |
| + content::PageNavigator* navigator, |
| + bool auto_update_on); |
| virtual ~OutdatedUpgradeBubbleView(); |
| static bool IsShowing() { return upgrade_bubble_ != NULL; } |
| @@ -60,11 +62,16 @@ class OutdatedUpgradeBubbleView : public views::BubbleDelegateView, |
| // reinstall. |
| static int num_ignored_bubbles_; |
| - // Identifies if the reinstall button was hit before closing the bubble. |
| - bool chose_to_reinstall_; |
| + // Identifies if auto-update is on or not. |
| + bool auto_update_on_; |
| - // Button that takes the user to the Chrome download page. |
| - views::LabelButton* reinstall_button_; |
| + // Identifies if the accept button was hit before closing the bubble. |
| + bool accepted_; |
| + |
| + // Button that let the user accept the proposal, which is to navigate to a |
|
robertshield
2014/03/26 03:20:11
*lets
MAD
2014/03/26 19:30:16
Done.
|
| + // Chrome download page when |auto_update_on_| is true, or turn on auto-update |
|
robertshield
2014/03/26 03:20:11
or attempt to re-enable auto-update otherwise.
MAD
2014/03/26 19:30:16
Done.
|
| + // otherwise. |
| + views::LabelButton* accept_button_; |
| // Button for the user to be reminded later about the outdated upgrade. |
| views::LabelButton* later_button_; |