Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h

Issue 18603006: Bookmark sync promo for Views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improved style Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d9d584b623224ae98c10a3b3cdd476e7846c3fee 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"
@@ -15,6 +16,7 @@
#include "url/gurl.h"
class BookmarkBubbleViewObserver;
+class BookmarkSyncPromoView;
class Profile;
namespace views {
@@ -56,6 +58,10 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
virtual void Init() OVERRIDE;
private:
+ friend class BookmarkBubbleViewTest;
+ FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoSignedIn);
+ FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoNotSignedIn);
+
// Creates a BookmarkBubbleView.
BookmarkBubbleView(views::View* anchor_view,
BookmarkBubbleViewObserver* observer,
@@ -119,6 +125,9 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
// the current parent.
views::Combobox* parent_combobox_;
+ // Bookmark sync promo view, if displayed.
+ BookmarkSyncPromoView* sync_promo_view_;
+
// When the destructor is invoked should the bookmark be removed?
bool remove_bookmark_;

Powered by Google App Engine
This is Rietveld 408576698