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

Issue 18603006: Bookmark sync promo for Views. (Closed)

Created:
7 years, 5 months ago by fdoray
Modified:
7 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, tfarina, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212724

Patch Set 1 #

Patch Set 2 : Improved comment #

Patch Set 3 : Improved style #

Total comments: 6

Patch Set 4 : Enum for column sets + rebase #

Patch Set 5 : Fix rebase, echo_dialog_view.cc shouldn't be here #

Patch Set 6 : Rebase #

Total comments: 13

Patch Set 7 : BookmarkBubbleView independant from browser, layout_constants and CAPS for enum #

Total comments: 3

Patch Set 8 : Delegate for sign in link #

Patch Set 9 : Common layout constants #

Total comments: 10

Patch Set 10 : scoped_ptr for delegate, support browser invalidation #

Patch Set 11 : Add comment for test #

Total comments: 2

Patch Set 12 : Handle incognito browser removed #

Total comments: 3

Patch Set 13 : Rebase, DCHECK #

Patch Set 14 : Compiles on CrOS and Android #

Patch Set 15 : Compiles on CrOS #

Patch Set 16 : Compiles on CrOS #

Patch Set 17 : Fix test for CrOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+584 lines, -33 lines) Patch
M chrome/app/bookmarks_strings.grdp View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/sync_promo_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/sync/sync_promo_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 2 3 4 5 6 7 8 9 5 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 chunks +74 lines, -24 lines 0 comments Download
A chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc View 1 2 3 4 5 6 7 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/browser_dialogs.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_trial.cc View 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
fdoray
Could you review this CL? ** Changes to ui/views/controls/* are already being reviewed in this ...
7 years, 5 months ago (2013-07-04 18:15:58 UTC) #1
Roger Tawa OOO till Jul 10th
You can remove the changes for cl/17756003 from this one by making the former's git ...
7 years, 5 months ago (2013-07-11 15:28:30 UTC) #2
fdoray
I made the changes requested by Roger. https://codereview.chromium.org/18603006/diff/6001/chrome/browser/ui/sync/sync_promo_ui.cc File chrome/browser/ui/sync/sync_promo_ui.cc (left): https://codereview.chromium.org/18603006/diff/6001/chrome/browser/ui/sync/sync_promo_ui.cc#oldcode103 chrome/browser/ui/sync/sync_promo_ui.cc:103: SyncPromoUI::ShouldShowSyncPromo is ...
7 years, 5 months ago (2013-07-11 19:00:39 UTC) #3
fdoray
+noms@ +bcwhite@ Could you review this CL?
7 years, 5 months ago (2013-07-11 20:00:02 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm
7 years, 5 months ago (2013-07-11 20:42:09 UTC) #5
noms
lgtm
7 years, 5 months ago (2013-07-11 20:47:17 UTC) #6
fdoray
+sky@ Owner for chrome/browser/ui/views/bookmarks/* Could you review this CL?
7 years, 5 months ago (2013-07-12 14:10:33 UTC) #7
sky
https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode49 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:49: // Top padding of the bubble. Can we use ...
7 years, 5 months ago (2013-07-15 18:14:10 UTC) #8
fdoray
Roger, could you review my comments? https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode49 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:49: // Top padding ...
7 years, 5 months ago (2013-07-16 17:49:58 UTC) #9
fdoray
Scott, could you review this CL? I addressed all your comments. https://codereview.chromium.org/18603006/diff/45001/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc File chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc (right): ...
7 years, 5 months ago (2013-07-16 17:58:56 UTC) #10
Roger Tawa OOO till Jul 10th
On 2013/07/16 17:49:58, fdoray wrote: > Roger, could you review my comments? > > https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ...
7 years, 5 months ago (2013-07-16 19:39:30 UTC) #11
sky
https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode250 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:250: SyncPromoUI::ShouldShowSyncPromo(profile_)) { On 2013/07/16 17:49:58, fdoray wrote: > ShouldShowSyncPromo ...
7 years, 5 months ago (2013-07-16 21:23:00 UTC) #12
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode250 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:250: SyncPromoUI::ShouldShowSyncPromo(profile_)) { On 2013/07/16 21:23:00, sky wrote: > On ...
7 years, 5 months ago (2013-07-17 13:26:31 UTC) #13
fdoray
Scott, I addressed all your comments. Could you review the CL? https://codereview.chromium.org/18603006/diff/30001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): ...
7 years, 5 months ago (2013-07-17 15:01:59 UTC) #14
sky
https://codereview.chromium.org/18603006/diff/82001/chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h File chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h (right): https://codereview.chromium.org/18603006/diff/82001/chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h#newcode11 chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h:11: virtual ~BookmarkBubbleDelegate() {} destructor before other methods. https://codereview.chromium.org/18603006/diff/82001/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc File ...
7 years, 5 months ago (2013-07-17 16:08:02 UTC) #15
fdoray
Scott, I addressed all your comments. Could you review the CL? https://codereview.chromium.org/18603006/diff/82001/chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h File chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h (right): ...
7 years, 5 months ago (2013-07-17 19:39:56 UTC) #16
sky
https://codereview.chromium.org/18603006/diff/109001/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc File chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc (right): https://codereview.chromium.org/18603006/diff/109001/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc#newcode39 chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc:39: browser_ = new Browser(Browser::CreateParams(profile_, Does this do the right ...
7 years, 5 months ago (2013-07-17 21:42:53 UTC) #17
fdoray
Scott, I addressed your comment. You can review the CL again. Thank you! https://codereview.chromium.org/18603006/diff/109001/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc File ...
7 years, 5 months ago (2013-07-17 23:22:53 UTC) #18
sky
LGTM https://codereview.chromium.org/18603006/diff/93002/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc File chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc (right): https://codereview.chromium.org/18603006/diff/93002/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc#newcode44 chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc:44: browser_->window()->Show(); DCHECK(tabstrip not empty?)
7 years, 5 months ago (2013-07-18 16:08:42 UTC) #19
fdoray
Scott: I added a question to help me understand your last comment correctly. https://codereview.chromium.org/18603006/diff/93002/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc File ...
7 years, 5 months ago (2013-07-18 18:49:12 UTC) #20
sky
https://codereview.chromium.org/18603006/diff/93002/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc File chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc (right): https://codereview.chromium.org/18603006/diff/93002/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc#newcode44 chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc:44: browser_->window()->Show(); On 2013/07/18 18:49:12, fdoray wrote: > On 2013/07/18 ...
7 years, 5 months ago (2013-07-19 00:02:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18603006/118001
7 years, 5 months ago (2013-07-19 00:28:03 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-19 01:01:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18603006/66002
7 years, 5 months ago (2013-07-19 12:53:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18603006/161001
7 years, 5 months ago (2013-07-19 13:29:55 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-19 14:07:13 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18603006/178001
7 years, 5 months ago (2013-07-19 14:33:31 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=137356
7 years, 5 months ago (2013-07-19 16:04:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18603006/148004
7 years, 5 months ago (2013-07-19 17:28:42 UTC) #29
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-19 18:27:29 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18603006/148004
7 years, 5 months ago (2013-07-19 23:24:47 UTC) #31
commit-bot: I haz the power
7 years, 5 months ago (2013-07-20 02:43:49 UTC) #32
Message was sent while issue was closed.
Change committed as 212724

Powered by Google App Engine
This is Rietveld 408576698