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

Issue 276072: The login dialog was being opened with the main browser window as a parent in... (Closed)

Created:
11 years, 2 months ago by RandyPosynick
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, ncarter (slow), Paweł Hajdan Jr., tim (not reviewing), idana, ChrisCampbell
Visibility:
Public.

Description

The login dialog was being opened with the main browser window as a parent in every case, but in some cases that was inappropriate because the UI event that triggered it could be in the Options dialog or the Bookmarks Manager. So in those cases now the sync login dialog opens with respect to the appropriate window as a parent. BUG=19776 TEST=See bug for repro steps.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -15 lines) Patch
M chrome/browser/browser.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/new_tab_page_sync_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 4 chunks +8 lines, -3 lines 3 comments Download
M chrome/browser/sync/profile_sync_service.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_setup_flow.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_setup_wizard.h View 2 chunks +5 lines, -0 lines 2 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/bookmark_manager_view.cc View 1 chunk +1 line, -1 line 1 comment Download
M chrome/browser/views/options/content_page_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/live_sync/profile_sync_service_test_harness.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
RandyPosynick
First patch.
11 years, 2 months ago (2009-10-16 22:00:51 UTC) #1
tim (not reviewing)
It looks pretty good based on what I suggested, but I think I was wrong ...
11 years, 1 month ago (2009-10-29 21:58:44 UTC) #2
tim (not reviewing)
11 years, 1 month ago (2009-10-30 01:51:24 UTC) #3
Darn. Neither of these approaches work perfectly -- EnableForUser is
asynchronous.  If the options dialog is closed before the wizard opens, the
parent pointer could be garbage. Either we need a bidirectional relationship
between the wizard and the requester/parent, or we figure out a way to mediate
via ProfileSyncService.  I need to think about it a bit more.

Powered by Google App Engine
This is Rietveld 408576698