Bookmark sync promo for Views.
commitbd88ec3c7dae1331ba1787e50e90b5334d269b81
authorfdoray@chromium.org <fdoray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 20 Jul 2013 02:43:45 +0000 (20 02:43 +0000)
committerfdoray@chromium.org <fdoray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 20 Jul 2013 02:43:45 +0000 (20 02:43 +0000)
treeba05df6e2fda233f8fdf64378bc3cedf866aff34
parent9e53c9ec044607583be0ec4efee1b85f72484d7a
Bookmark sync promo for Views.

Adds a bookmark sync promo at the bottom of the bookmark bubble. The promo is only shown to users that are not signed in. Clicking the link in the sync promo opens the sign in page.

Screenshot with layout_constants: http://i.imgur.com/aYG2y2n.png
(old screenshot: http://i.imgur.com/IqBNGXK.png)

Design document: https://docs.google.com/a/google.com/document/d/1Jduor831szvkdq3cwlWrFw91a8Pzu1ynAs5hlGc7MvM/edit?usp=sharing

TEST=
1. Open Chromium with the --enable-bookmark-sync-promo flag.
2. Make sure you are not signed in.
3. Open the bookmark bubble (click on the bookmark star or Ctrl+D).
Expected result: a sync promo is displayed at the bottom of the bookmark bubble.
4. Click the "Sign in" link in the sync promo.
Expected result: the sign in page is loaded.

BUG=244279

Review URL: https://chromiumcodereview.appspot.com/18603006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212724 0039d316-1c4b-4281-b951-d872f2087c98
21 files changed:
chrome/app/bookmarks_strings.grdp
chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h [new file with mode: 0644]
chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc [new file with mode: 0644]
chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h [new file with mode: 0644]
chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_unittest.cc [new file with mode: 0644]
chrome/browser/ui/sync/one_click_signin_helper.cc
chrome/browser/ui/sync/sync_promo_ui.cc
chrome/browser/ui/sync/sync_promo_ui.h
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc [new file with mode: 0644]
chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc [new file with mode: 0644]
chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h [new file with mode: 0644]
chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc [new file with mode: 0644]
chrome/browser/ui/views/browser_dialogs.h
chrome/browser/ui/views/frame/browser_view.cc
chrome/browser/ui/webui/sync_promo/sync_promo_trial.cc
chrome/chrome_browser_ui.gypi
chrome/chrome_tests_unit.gypi
chrome/common/chrome_switches.cc
chrome/common/chrome_switches.h