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

Issue 9838064: Add a sign-in promo message to the Other Devices menu. (Closed)

Created:
8 years, 9 months ago by Patrick Dubroy
Modified:
8 years, 9 months ago
Reviewers:
Dan Beam, Evan Stade
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Add a message to the Other Devices menu when user has no foreign sessions. When the user is signed in, has tab sync enabled, but has no foreign sessions, we would previously not show the menu. Now we show it with an informational message. BUG=119699 TEST=Manual. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129397

Patch Set 1 #

Total comments: 37

Patch Set 2 : Address dbeam's comments. #

Total comments: 22

Patch Set 3 : Only show promo when user is signed in but has no tab sync data. #

Total comments: 19

Patch Set 4 : Address comments, and only enable menu when tab sync is enabled. #

Total comments: 16

Patch Set 5 : Address non-nits. #

Patch Set 6 : Address previously-unaddressed nits. #

Total comments: 23

Patch Set 7 : Address dbeam's comments. #

Total comments: 9

Patch Set 8 : Address dbeam's final comments & estade's comments. #

Patch Set 9 : Fix copyright header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -85 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.css View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 7 8 8 chunks +28 lines, -11 lines 0 comments Download
M chrome/browser/resources/ntp4/other_sessions.js View 1 2 3 4 5 6 7 3 chunks +49 lines, -24 lines 0 comments Download
M chrome/browser/ui/webui/ntp/foreign_session_handler.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/foreign_session_handler.cc View 1 2 3 4 5 6 7 4 chunks +35 lines, -40 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Patrick Dubroy
Hey Dan, can you please review? cc: estade, since he's probably overloading with reviews right ...
8 years, 9 months ago (2012-03-23 16:58:43 UTC) #1
Dan Beam
http://codereview.chromium.org/9838064/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/9838064/diff/1/chrome/app/generated_resources.grd#newcode9207 chrome/app/generated_resources.grd:9207: + <message name="IDS_NEW_TAB_OTHER_SESSIONS_SIGN_IN_TEXT" desc="In title case. The text of ...
8 years, 9 months ago (2012-03-23 21:12:47 UTC) #2
Patrick Dubroy
http://codereview.chromium.org/9838064/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/9838064/diff/1/chrome/app/generated_resources.grd#newcode9207 chrome/app/generated_resources.grd:9207: + <message name="IDS_NEW_TAB_OTHER_SESSIONS_SIGN_IN_TEXT" desc="In title case. The text of ...
8 years, 9 months ago (2012-03-26 15:16:46 UTC) #3
Dan Beam
http://codereview.chromium.org/9838064/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/9838064/diff/1/chrome/app/generated_resources.grd#newcode9207 chrome/app/generated_resources.grd:9207: + <message name="IDS_NEW_TAB_OTHER_SESSIONS_SIGN_IN_TEXT" desc="In title case. The text of ...
8 years, 9 months ago (2012-03-26 17:08:33 UTC) #4
Patrick Dubroy
This is changed so that the promo message only appears when the user is signed ...
8 years, 9 months ago (2012-03-26 19:36:46 UTC) #5
Dan Beam
http://codereview.chromium.org/9838064/diff/11001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9838064/diff/11001/chrome/browser/resources/ntp4/new_tab.html#newcode205 chrome/browser/resources/ntp4/new_tab.html:205: i18n-content="learnMore"></a></p> new line for each </close:tag> if it's not ...
8 years, 9 months ago (2012-03-26 20:42:39 UTC) #6
Dan Beam
http://codereview.chromium.org/9838064/diff/11001/chrome/browser/ui/webui/ntp/foreign_session_handler.cc File chrome/browser/ui/webui/ntp/foreign_session_handler.cc (right): http://codereview.chromium.org/9838064/diff/11001/chrome/browser/ui/webui/ntp/foreign_session_handler.cc#newcode114 chrome/browser/ui/webui/ntp/foreign_session_handler.cc:114: if (SessionWindowToValue(*window, window_data.get())) { nit: no curlies
8 years, 9 months ago (2012-03-26 20:57:37 UTC) #7
Patrick Dubroy
One more slight change, we should only show the Other Devices button when tab sync ...
8 years, 9 months ago (2012-03-26 21:41:47 UTC) #8
Dan Beam
https://chromiumcodereview.appspot.com/9838064/diff/14002/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://chromiumcodereview.appspot.com/9838064/diff/14002/chrome/browser/resources/ntp4/new_tab.js#newcode120 chrome/browser/resources/ntp4/new_tab.js:120: $('other-sessions-menu-button').initialize(templateData.isUserSignedIn); any reason you're not assigning this getElementById() to ...
8 years, 9 months ago (2012-03-26 23:18:54 UTC) #9
Patrick Dubroy
Addressed non-nits. https://chromiumcodereview.appspot.com/9838064/diff/14002/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://chromiumcodereview.appspot.com/9838064/diff/14002/chrome/browser/resources/ntp4/new_tab.js#newcode120 chrome/browser/resources/ntp4/new_tab.js:120: $('other-sessions-menu-button').initialize(templateData.isUserSignedIn); On 2012/03/26 23:18:54, Dan Beam wrote: ...
8 years, 9 months ago (2012-03-26 23:46:07 UTC) #10
Dan Beam
https://chromiumcodereview.appspot.com/9838064/diff/14002/chrome/browser/resources/ntp4/other_sessions.js File chrome/browser/resources/ntp4/other_sessions.js (right): https://chromiumcodereview.appspot.com/9838064/diff/14002/chrome/browser/resources/ntp4/other_sessions.js#newcode97 chrome/browser/resources/ntp4/other_sessions.js:97: var promoContent = $('other-sessions-promo-message'); On 2012/03/26 23:46:07, dubroy wrote: ...
8 years, 9 months ago (2012-03-27 00:03:42 UTC) #11
Patrick Dubroy
Ok, I've addressed all your previous issues now. http://codereview.chromium.org/9838064/diff/14002/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/9838064/diff/14002/chrome/browser/resources/ntp4/new_tab.js#newcode565 chrome/browser/resources/ntp4/new_tab.js:565: function ...
8 years, 9 months ago (2012-03-27 00:36:51 UTC) #12
Dan Beam
http://codereview.chromium.org/9838064/diff/13006/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9838064/diff/13006/chrome/browser/resources/ntp4/new_tab.html#newcode113 chrome/browser/resources/ntp4/new_tab.html:113: <div class="disclosure-triangle"></div> might be better for promo message to ...
8 years, 9 months ago (2012-03-27 01:21:06 UTC) #13
Patrick Dubroy
Addressed most of your comments. Also updated the description and bug # to better reflect ...
8 years, 9 months ago (2012-03-27 13:44:21 UTC) #14
Dan Beam
http://codereview.chromium.org/9838064/diff/13006/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9838064/diff/13006/chrome/browser/resources/ntp4/new_tab.html#newcode113 chrome/browser/resources/ntp4/new_tab.html:113: <div class="disclosure-triangle"></div> On 2012/03/27 13:44:21, dubroy wrote: > On ...
8 years, 9 months ago (2012-03-27 18:09:21 UTC) #15
Dan Beam
lgtm w/nits mentioned in last comment, estade still needs to stamp for ui/webui/ntp/* until I ...
8 years, 9 months ago (2012-03-27 18:11:40 UTC) #16
Evan Stade
http://codereview.chromium.org/9838064/diff/16005/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/9838064/diff/16005/chrome/browser/resources/ntp4/new_tab.js#newcode574 chrome/browser/resources/ntp4/new_tab.js:574: return otherSessionsButton.setForeignSessions(sessionList, looks weird to have a return statement ...
8 years, 9 months ago (2012-03-27 18:20:20 UTC) #17
Patrick Dubroy
http://codereview.chromium.org/9838064/diff/16005/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/9838064/diff/16005/chrome/browser/resources/ntp4/new_tab.js#newcode574 chrome/browser/resources/ntp4/new_tab.js:574: return otherSessionsButton.setForeignSessions(sessionList, On 2012/03/27 18:20:20, Evan Stade wrote: > ...
8 years, 9 months ago (2012-03-27 20:06:19 UTC) #18
Evan Stade
lgtm
8 years, 9 months ago (2012-03-27 20:06:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/9838064/18011
8 years, 9 months ago (2012-03-28 07:38:57 UTC) #20
commit-bot: I haz the power
8 years, 9 months ago (2012-03-28 07:56:01 UTC) #21
Try job failure for 9838064-18011 (retry) on linux_rel for step "update".
It's a second try, previously, step "update" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Step "update" is always a major failure.
Look at the try server FAQ for more details.

Powered by Google App Engine
This is Rietveld 408576698