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

Issue 1273683002: Fix a forgotten return statement in BrowserContentSettingBubbleModelDelegate. (Closed)

Created:
5 years, 4 months ago by msramek
Modified:
5 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a forgotten return statement in BrowserContentSettingBubbleModelDelegate. This meant that for bubbles which were invoked for both camera and microphone, we navigated correctly to the default settings page, but then immediately to mediastream exceptions page, which doesn't exist anymore. NOTE: This test can fail if the settings UI opens in a separate window, but BrowserList does not recognize the window as active yet. Several rounds of testing on trybots suggest that this does not happen. If it in fact does happen, feel free to disable this test. msramek@ can then take another look and restrict it to the same-window case, or fix it to wait for the new window to be focused. BUG=515376, 509962 Committed: https://crrev.com/04dfde123d21ac9cb872adc63bcaeba7d7532eba Cr-Commit-Position: refs/heads/master@{#342997}

Patch Set 1 #

Patch Set 2 : Browsertest #

Total comments: 7

Patch Set 3 : Compacted the test. #

Patch Set 4 : Don't wait until the navigation finishes. #

Patch Set 5 : Handle popup windows. #

Total comments: 4

Patch Set 6 : Improved a comment. #

Total comments: 4

Patch Set 7 : Readded the navigation observer. #

Patch Set 8 : Added ASSERT. #

Total comments: 4

Patch Set 9 : Nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -0 lines) Patch
M chrome/browser/ui/browser_content_setting_bubble_model_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +65 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
msramek
Hi Mike, could you have a look at this tiny CL? It's a followup to ...
5 years, 4 months ago (2015-08-05 10:56:44 UTC) #2
msramek
Actually, let me add a browsertest as well :)
5 years, 4 months ago (2015-08-05 15:33:36 UTC) #3
msw
Nice test, just some nits to make it a bit cleaner. https://codereview.chromium.org/1273683002/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): ...
5 years, 4 months ago (2015-08-05 17:05:38 UTC) #4
msramek
https://codereview.chromium.org/1273683002/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode104 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:104: scoped_ptr<ContentSettingBubbleModel> GetNewBubbleInTheFirstTab() { On 2015/08/05 17:05:38, msw wrote: > ...
5 years, 4 months ago (2015-08-05 17:39:28 UTC) #5
msw
lgtm, thanks https://codereview.chromium.org/1273683002/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode123 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:123: browser()->tab_strip_model()->GetActiveWebContents()); On 2015/08/05 17:39:28, msramek wrote: > ...
5 years, 4 months ago (2015-08-05 17:47:20 UTC) #6
msramek
Thank you!
5 years, 4 months ago (2015-08-05 17:59:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273683002/40001
5 years, 4 months ago (2015-08-05 17:59:33 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/67154)
5 years, 4 months ago (2015-08-05 18:56:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273683002/40001
5 years, 4 months ago (2015-08-05 22:47:22 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/87098)
5 years, 4 months ago (2015-08-06 00:03:55 UTC) #15
msramek
The ChromeOS test was consistently getting SIGTERM and I thought that the navigation just took ...
5 years, 4 months ago (2015-08-06 15:12:50 UTC) #16
msw
lgtm with minor nits. https://codereview.chromium.org/1273683002/diff/80001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/80001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode18 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:18: #include "content/public/test/test_navigation_observer.h" nit: remove if ...
5 years, 4 months ago (2015-08-06 18:23:21 UTC) #17
msramek
Thanks! https://codereview.chromium.org/1273683002/diff/80001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/80001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode18 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:18: #include "content/public/test/test_navigation_observer.h" On 2015/08/06 18:23:20, msw wrote: > ...
5 years, 4 months ago (2015-08-06 18:32:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273683002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273683002/100001
5 years, 4 months ago (2015-08-06 18:33:18 UTC) #21
msw
https://codereview.chromium.org/1273683002/diff/100001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/100001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode120 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:120: bubble->OnManageLinkClicked(); One more thought (sorry). You might actually want ...
5 years, 4 months ago (2015-08-06 18:41:30 UTC) #22
msramek
https://codereview.chromium.org/1273683002/diff/100001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/100001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode120 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:120: bubble->OnManageLinkClicked(); On 2015/08/06 18:41:30, msw wrote: > One more ...
5 years, 4 months ago (2015-08-06 19:11:25 UTC) #24
msw
https://codereview.chromium.org/1273683002/diff/100001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/100001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode120 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:120: bubble->OnManageLinkClicked(); On 2015/08/06 19:11:25, msramek wrote: > On 2015/08/06 ...
5 years, 4 months ago (2015-08-06 19:24:11 UTC) #25
msramek
Sorry for the late reply. I was OOO and didn't want to land a possibly ...
5 years, 4 months ago (2015-08-11 13:07:41 UTC) #26
msw
lgtm with nits. https://codereview.chromium.org/1273683002/diff/140001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/140001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode108 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:108: ui_test_utils::NavigateToURL( nit: follow the pattern of ...
5 years, 4 months ago (2015-08-11 17:03:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273683002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273683002/160001
5 years, 4 months ago (2015-08-12 08:40:38 UTC) #30
msramek
https://codereview.chromium.org/1273683002/diff/140001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc File chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc (right): https://codereview.chromium.org/1273683002/diff/140001/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc#newcode108 chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc:108: ui_test_utils::NavigateToURL( On 2015/08/11 17:03:14, msw wrote: > nit: follow ...
5 years, 4 months ago (2015-08-12 08:41:58 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 4 months ago (2015-08-12 09:37:34 UTC) #32
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 09:38:06 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/04dfde123d21ac9cb872adc63bcaeba7d7532eba
Cr-Commit-Position: refs/heads/master@{#342997}

Powered by Google App Engine
This is Rietveld 408576698