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

Issue 10167001: Sync: Prevent delay in showing the Other Devices button after first sign-in (Closed)

Created:
8 years, 8 months ago by Patrick Dubroy
Modified:
8 years, 8 months ago
Reviewers:
Nicolas Zea, Dan Beam
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org
Visibility:
Public.

Description

Sync: Prevent delay in showing the Other Devices button after first sign-in. BUG=123033 TEST=In a signed-in profile, open a new tab page. Then open chrome://settings/syncSetup in another tab. Toggle the "Open Tabs" sync option, then observe that the "Other devices" menu appears or disappears from the NTP as appropriate. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133522

Patch Set 1 #

Patch Set 2 : Remove unnecessary include. #

Patch Set 3 : Proper, non-racey fix. #

Total comments: 1

Patch Set 4 : Add comment w/ link to bug for a follow-up CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M chrome/browser/ui/webui/ntp/foreign_session_handler.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Patrick Dubroy
PTAL -- zea for correctness, dbeam for OWNERS rubber stamp.
8 years, 8 months ago (2012-04-20 09:18:41 UTC) #1
Nicolas Zea
This is still racy w.r.t. the sync service standing up though right? Also, is the ...
8 years, 8 months ago (2012-04-20 17:20:17 UTC) #2
Patrick Dubroy
On 2012/04/20 17:20:17, nzea wrote: > This is still racy w.r.t. the sync service standing ...
8 years, 8 months ago (2012-04-23 09:49:46 UTC) #3
Patrick Dubroy
Ok, I think this is the correct fix.
8 years, 8 months ago (2012-04-23 09:50:34 UTC) #4
Nicolas Zea
http://codereview.chromium.org/10167001/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/10167001/diff/11001/chrome/browser/ui/webui/ntp/foreign_session_handler.cc#newcode66 chrome/browser/ui/webui/ntp/foreign_session_handler.cc:66: content::NotificationService::AllSources()); This is going to listen to other profiles ...
8 years, 8 months ago (2012-04-23 18:18:52 UTC) #5
Nicolas Zea
discussed offline, this is the simplest fix for now. LGTM
8 years, 8 months ago (2012-04-23 18:39:59 UTC) #6
Dan Beam
8 years, 8 months ago (2012-04-23 18:43:50 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698