| Index: chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h
|
| diff --git a/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h b/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h
|
| index 12fed1019b235c548c0b64503a745cd20b782b25..d40920acbfd16bfca1f23b160eeba99c2e9fc642 100644
|
| --- a/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h
|
| +++ b/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h
|
| @@ -16,34 +16,34 @@ typedef struct _GtkWindow GtkWindow;
|
|
|
| class BrowserWindowGtk;
|
|
|
| -// Displays the one-click signin confirmation bubble (after syncing
|
| +// Displays the one-click signin confirmation bubble (before syncing
|
| // has started).
|
| class OneClickSigninBubbleGtk : public BubbleDelegateGtk {
|
| public:
|
| - // Deletes self on close. The given callbacks will be called if the
|
| - // user clicks the corresponding link.
|
| - OneClickSigninBubbleGtk(BrowserWindowGtk* browser_window_gtk,
|
| - const base::Closure& learn_more_callback,
|
| - const base::Closure& advanced_callback);
|
| + // Deletes self on close. The given callback will be called if the
|
| + // user decides to start sync.
|
| + OneClickSigninBubbleGtk(
|
| + BrowserWindowGtk* browser_window_gtk,
|
| + const base::Callback<void(bool)>& start_sync_callback);
|
|
|
| // BubbleDelegateGtk implementation.
|
| virtual void BubbleClosing(
|
| BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
|
|
|
| void ClickOKForTest();
|
| - void ClickLearnMoreForTest();
|
| + void ClickUndoForTest();
|
| void ClickAdvancedForTest();
|
| + void CloseForTest();
|
|
|
| private:
|
| virtual ~OneClickSigninBubbleGtk();
|
|
|
| - CHROMEGTK_CALLBACK_0(OneClickSigninBubbleGtk, void, OnClickLearnMoreLink);
|
| CHROMEGTK_CALLBACK_0(OneClickSigninBubbleGtk, void, OnClickAdvancedLink);
|
| CHROMEGTK_CALLBACK_0(OneClickSigninBubbleGtk, void, OnClickOK);
|
| + CHROMEGTK_CALLBACK_0(OneClickSigninBubbleGtk, void, OnClickUndo);
|
|
|
| BubbleGtk* bubble_;
|
| - const base::Closure learn_more_callback_;
|
| - const base::Closure advanced_callback_;
|
| + base::Callback<void(bool)> start_sync_callback_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleGtk);
|
| };
|
|
|