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

Issue 228293004: InfoBarService inherits from InfoBarManager (Closed)

Created:
6 years, 8 months ago by droger
Modified:
6 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

InfoBarService inherits from InfoBarManager This allows to change the implementation of InfoBarDelegate::web_contents() such that it no longer calls InfoBarManager::web_contents() (which will be removed), but InfoBarService::web_contents() instead. BUG=354379 TBR=jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262976

Patch Set 1 #

Patch Set 2 : implement web_contents using the static_cast #

Patch Set 3 : fix observer #

Patch Set 4 : minor changes #

Total comments: 4

Patch Set 5 : Add a ShutDown method #

Total comments: 10

Patch Set 6 : remove InfoBarService::infobar_manager() #

Patch Set 7 : format #

Total comments: 3

Patch Set 8 : review comments #

Patch Set 9 : whitespace #

Total comments: 8

Patch Set 10 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -406 lines) Patch
M chrome/browser/accessibility/accessibility_extension_api.cc View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 3 4 5 6 5 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/autofill/autofill_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 3 4 5 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/debugger/debugger_api.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 1 2 3 4 5 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.cc View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/webstore_startup_installer_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 21 chunks +76 lines, -76 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 3 4 5 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/infobars/infobar_delegate.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/infobars/infobar_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/infobars/infobar_manager.h View 1 2 3 4 5 6 7 8 9 4 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/infobars/infobar_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +23 lines, -12 lines 0 comments Download
M chrome/browser/infobars/infobar_service.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -22 lines 0 comments Download
M chrome/browser/infobars/infobar_service.cc View 1 2 3 4 5 6 7 8 3 chunks +46 lines, -60 lines 0 comments Download
M chrome/browser/infobars/infobars_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/managed_mode/managed_mode_interstitial.cc View 1 2 3 4 5 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/managed_mode/managed_mode_navigation_observer.cc View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/media/chrome_media_stream_infobar_browsertest.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 2 3 4 5 9 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 7 chunks +10 lines, -13 lines 0 comments Download
M chrome/browser/translate/translate_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -17 lines 0 comments Download
M chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/android/infobars/infobar_container_android.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/extension_infobar_controller.mm View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 3 4 5 4 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc View 1 2 3 4 5 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/test/gpu/webgl_infobar_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
droger
This CL is work in progress, but core of the change is done. It implements ...
6 years, 8 months ago (2014-04-08 12:10:59 UTC) #1
blundell
Looks fine to me. https://codereview.chromium.org/228293004/diff/60001/chrome/browser/infobars/infobar_manager.cc File chrome/browser/infobars/infobar_manager.cc (right): https://codereview.chromium.org/228293004/diff/60001/chrome/browser/infobars/infobar_manager.cc#newcode87 chrome/browser/infobars/infobar_manager.cc:87: NotifyManagerShuttingDown(); nit: I don't think ...
6 years, 8 months ago (2014-04-08 12:19:03 UTC) #2
droger
https://codereview.chromium.org/228293004/diff/60001/chrome/browser/infobars/infobar_manager.cc File chrome/browser/infobars/infobar_manager.cc (right): https://codereview.chromium.org/228293004/diff/60001/chrome/browser/infobars/infobar_manager.cc#newcode87 chrome/browser/infobars/infobar_manager.cc:87: NotifyManagerShuttingDown(); On 2014/04/08 12:19:03, blundell wrote: > nit: I ...
6 years, 8 months ago (2014-04-08 12:20:53 UTC) #3
droger
Actually, the CL does not work in this state because there are calls to virtual ...
6 years, 8 months ago (2014-04-08 13:39:38 UTC) #4
droger
Alright, bots are happy again.
6 years, 8 months ago (2014-04-08 14:52:06 UTC) #5
droger
pkasting: if you agree with this approach, my plan will be to remove the InfoBarService::infobar_manager() ...
6 years, 8 months ago (2014-04-08 15:00:11 UTC) #6
Peter Kasting
https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc File chrome/browser/infobars/infobar_delegate.cc (right): https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc#newcode18 chrome/browser/infobars/infobar_delegate.cc:18: content::WebContents* WebContentsFromInfoBar(InfoBar* infobar) { On 2014/04/08 15:00:11, droger wrote: ...
6 years, 8 months ago (2014-04-08 20:39:56 UTC) #7
droger
https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc File chrome/browser/infobars/infobar_delegate.cc (right): https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc#newcode18 chrome/browser/infobars/infobar_delegate.cc:18: content::WebContents* WebContentsFromInfoBar(InfoBar* infobar) { On 2014/04/08 20:39:56, Peter Kasting ...
6 years, 8 months ago (2014-04-08 20:54:46 UTC) #8
Peter Kasting
https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc File chrome/browser/infobars/infobar_delegate.cc (right): https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc#newcode18 chrome/browser/infobars/infobar_delegate.cc:18: content::WebContents* WebContentsFromInfoBar(InfoBar* infobar) { On 2014/04/08 20:54:46, droger wrote: ...
6 years, 8 months ago (2014-04-08 21:41:35 UTC) #9
blundell
On 2014/04/08 21:41:35, Peter Kasting wrote: > https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc > File chrome/browser/infobars/infobar_delegate.cc (right): > > https://codereview.chromium.org/228293004/diff/80001/chrome/browser/infobars/infobar_delegate.cc#newcode18 ...
6 years, 8 months ago (2014-04-08 21:47:27 UTC) #10
Peter Kasting
On 2014/04/08 21:47:27, blundell wrote: > Unless I'm missing something, the InfoBarDelegate inheritance doesn't help ...
6 years, 8 months ago (2014-04-08 21:53:57 UTC) #11
blundell
On 2014/04/08 21:53:57, Peter Kasting wrote: > On 2014/04/08 21:47:27, blundell wrote: > > Unless ...
6 years, 8 months ago (2014-04-08 21:56:56 UTC) #12
droger
This is ready for review, please take a look.
6 years, 8 months ago (2014-04-09 09:29:55 UTC) #13
blundell
Can you get rid of InfoBarManager::web_contents() in this CL? Can you add a TODO re: ...
6 years, 8 months ago (2014-04-09 09:41:21 UTC) #14
droger
On 2014/04/09 09:41:21, blundell wrote: > Can you get rid of InfoBarManager::web_contents() in this CL? ...
6 years, 8 months ago (2014-04-09 11:10:49 UTC) #15
blundell
LGTM
6 years, 8 months ago (2014-04-09 15:18:45 UTC) #16
Peter Kasting
LGTM https://codereview.chromium.org/228293004/diff/160001/chrome/browser/autofill/autofill_interactive_uitest.cc File chrome/browser/autofill/autofill_interactive_uitest.cc (right): https://codereview.chromium.org/228293004/diff/160001/chrome/browser/autofill/autofill_interactive_uitest.cc#newcode177 chrome/browser/autofill/autofill_interactive_uitest.cc:177: ->Accept(); Nit: Urgh, clang-format. Do this: infobar_service_->infobar_at(0)->delegate()->AsConfirmInfoBarDelegate()-> Accept(); ...
6 years, 8 months ago (2014-04-10 00:08:58 UTC) #17
droger
TBR=jochen for everything that is not in ui/ infobars/ or translate/
6 years, 8 months ago (2014-04-10 09:18:18 UTC) #18
droger
The CQ bit was checked by droger@chromium.org
6 years, 8 months ago (2014-04-10 09:18:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/228293004/180001
6 years, 8 months ago (2014-04-10 09:18:39 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 13:53:28 UTC) #21
Message was sent while issue was closed.
Change committed as 262976

Powered by Google App Engine
This is Rietveld 408576698