| Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
|
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
|
| index da037102a0a385e8746be23faf2b0e00f196ab19..ebc2bfee23bf83b93797da49f0c245c84b364f36 100644
|
| --- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
|
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/gtest_prod_util.h"
|
| #include "base/strings/string16.h"
|
| #include "chrome/browser/ui/bookmarks/recently_used_folders_combo_model.h"
|
| #include "ui/views/bubble/bubble_delegate.h"
|
| @@ -34,7 +35,8 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
|
| BookmarkBubbleViewObserver* observer,
|
| Profile* profile,
|
| const GURL& url,
|
| - bool newly_bookmarked);
|
| + bool newly_bookmarked,
|
| + views::View* sync_promo_view);
|
|
|
| static bool IsShowing();
|
|
|
| @@ -56,12 +58,19 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
|
| virtual void Init() OVERRIDE;
|
|
|
| private:
|
| + friend class BookmarkBubbleViewBrowserTest;
|
| + FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewBrowserTest,
|
| + SyncPromoSignedIn);
|
| + FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewBrowserTest,
|
| + SyncPromoNotSignedIn);
|
| +
|
| // Creates a BookmarkBubbleView.
|
| BookmarkBubbleView(views::View* anchor_view,
|
| BookmarkBubbleViewObserver* observer,
|
| Profile* profile,
|
| const GURL& url,
|
| - bool newly_bookmarked);
|
| + bool newly_bookmarked,
|
| + views::View* sync_promo_view);
|
|
|
| // Returns the title to display.
|
| string16 GetTitle();
|
| @@ -119,6 +128,9 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
|
| // the current parent.
|
| views::Combobox* parent_combobox_;
|
|
|
| + // Bookmark sync promo view, if displayed.
|
| + views::View* sync_promo_view_;
|
| +
|
| // When the destructor is invoked should the bookmark be removed?
|
| bool remove_bookmark_;
|
|
|
|
|