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

Issue 2771113003: Use the same browser instance in the sync confirmation dialog. (Closed)

Created:
3 years, 9 months ago by msarda
Modified:
3 years, 8 months ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the same browser instance in the sync confirmation dialog. Before this CL, the sync confirmation dialog used the active browser when dismissing the dialog. In some cases, the active browser is different than the browser that actually presented the sync confirmation dialog and this leads to unexpected behavior. This CL fixes the browser instance used by the sync confirmation dialog and ensures that the same instace is used throughout the lifetime of the sync confirmation dialog. TEST=See bug BUG=694476 Review-Url: https://codereview.chromium.org/2771113003 Cr-Commit-Position: refs/heads/master@{#460345} Committed: https://chromium.googlesource.com/chromium/src/+/fc05776e6cc541dc9f4b6652876be72549f41682

Patch Set 1 : Self review #

Total comments: 2

Patch Set 2 : Nit #

Patch Set 3 : Rebase & compile fix #

Patch Set 4 : Fix compile #

Messages

Total messages: 36 (20 generated)
msarda
Tommy, I know you are not an owner of these files, however this is a ...
3 years, 9 months ago (2017-03-24 17:23:30 UTC) #4
msarda
Friendly ping. This is a really bad user experience and it would be great to ...
3 years, 8 months ago (2017-03-28 08:15:00 UTC) #7
anthonyvd
lgtm. Thanks for the good change!
3 years, 8 months ago (2017-03-28 15:17:07 UTC) #8
msarda
pkasting@chromium.org: Please review changes in chrome/browser/ui/cocoa/profiles/ chrome/browser/ui/views/profiles/
3 years, 8 months ago (2017-03-28 15:21:46 UTC) #10
tommycli
lgtm this is a good change... and i didn't see anything that looked funny to ...
3 years, 8 months ago (2017-03-28 16:24:47 UTC) #11
Peter Kasting
LGTM
3 years, 8 months ago (2017-03-28 22:39:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2771113003/60001
3 years, 8 months ago (2017-03-29 07:53:53 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/68644) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-03-29 07:56:19 UTC) #17
msarda
Thank you for the review. https://codereview.chromium.org/2771113003/diff/40001/chrome/browser/ui/webui/signin/sync_confirmation_handler.h File chrome/browser/ui/webui/signin/sync_confirmation_handler.h (right): https://codereview.chromium.org/2771113003/diff/40001/chrome/browser/ui/webui/signin/sync_confirmation_handler.h#newcode70 chrome/browser/ui/webui/signin/sync_confirmation_handler.h:70: // Weak reference to ...
3 years, 8 months ago (2017-03-29 08:24:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2771113003/80001
3 years, 8 months ago (2017-03-29 08:24:43 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/383934)
3 years, 8 months ago (2017-03-29 08:36:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2771113003/100001
3 years, 8 months ago (2017-03-29 09:12:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/417192)
3 years, 8 months ago (2017-03-29 09:28:17 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2771113003/120001
3 years, 8 months ago (2017-03-29 09:53:24 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:120001) as https://chromium.googlesource.com/chromium/src/+/fc05776e6cc541dc9f4b6652876be72549f41682
3 years, 8 months ago (2017-03-29 10:50:11 UTC) #35
Finnur
3 years, 8 months ago (2017-03-29 11:31:13 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:120001) has been created in
https://codereview.chromium.org/2787453002/ by finnur@chromium.org.

The reason for reverting is: Reverting due to linker error on Linux ChromiumOS
Builder (dbg):

FAILED: chrome 
../../chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc:190:
error: undefined reference to
'SyncConfirmationUI::InitializeMessageHandlerWithBrowser(Browser*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

.

Powered by Google App Engine
This is Rietveld 408576698