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

Issue 211273007: Split InfoBarService core code into InfoBarManager (Closed)

Created:
6 years, 9 months ago by droger
Modified:
6 years, 8 months ago
CC:
chromium-reviews, asanka, browser-components-watch_chromium.org, dmazzoni+watch_chromium.org, markusheintz_, benjhayden+dwatch_chromium.org, Ilya Sherman, miu+watch_chromium.org, extensions-reviews_chromium.org, aboxhall+watch_chromium.org, chromium-apps-reviews_chromium.org, dtseng+watch_chromium.org, fischman+watch_chromium.org, yuzo+watch_chromium.org, feature-media-reviews_chromium.org, pam+watch_chromium.org, Michael van Ouwerkerk, piman+watch_chromium.org, rouslan+autofillwatch_chromium.org, plundblad+watch_chromium.org, mcasas+watch_chromium.org, benquan, robertshield, Dane Wallinga, dyu1, estade+watch_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Split InfoBarService core code into InfoBarManager InfoBarService is now responsible for associating an InfoBarManager to a Tab and handling the interactions with the rest of chrome (notifications, navigation events). InfoBarManager has the core logic for infobar management. It owns the list of infobars. Eventually InfoBarManager will no longer rely on content/, but for now it still has a reference to a WebContents instance. This reference was kept for now to minimize the size of the change, but will be removed in a future CL. BUG=354379 TBR=jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260847

Patch Set 1 : #

Patch Set 2 : Fix android compilation #

Total comments: 17

Patch Set 3 : review comments #

Patch Set 4 : minor changes #

Patch Set 5 : fix compile #

Patch Set 6 : rebase + rename CleanUp to OnWebContentsDestroyed #

Patch Set 7 : fix android compilation #

Patch Set 8 : fix android compile #

Total comments: 3

Patch Set 9 : Rebase + comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -576 lines) Patch
M chrome/browser/accessibility/accessibility_extension_api.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 5 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/autofill/autofill_interactive_uitest.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/debugger/debugger_api.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.cc View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_startup_installer_browsertest.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 21 chunks +80 lines, -79 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/infobars/infobar.h View 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/infobars/infobar.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/infobars/infobar_container.h View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/infobars/infobar_container.cc View 1 2 5 chunks +16 lines, -17 lines 0 comments Download
A + chrome/browser/infobars/infobar_manager.h View 1 2 3 4 5 4 chunks +33 lines, -34 lines 0 comments Download
A + chrome/browser/infobars/infobar_manager.cc View 1 2 3 4 5 6 chunks +21 lines, -82 lines 0 comments Download
M chrome/browser/infobars/infobar_service.h View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -64 lines 0 comments Download
M chrome/browser/infobars/infobar_service.cc View 1 2 3 4 5 6 7 8 2 chunks +42 lines, -111 lines 0 comments Download
M chrome/browser/infobars/infobars_browsertest.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/managed_mode/managed_mode_interstitial.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/managed_mode/managed_mode_navigation_observer.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/media/chrome_media_stream_infobar_browsertest.cc View 1 2 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.cc View 1 2 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 2 9 chunks +22 lines, -15 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 7 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/translate/translate_browsertest.cc View 1 2 3 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 5 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/android/infobars/infobar_container_android.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_cocoa.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm View 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 7 8 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/gpu/webgl_infobar_browsertest.cc View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
droger
The core of the CL in infobar_manager and infobar_service. The rest is just updating callsites.
6 years, 9 months ago (2014-03-26 16:56:56 UTC) #1
droger
+pkasting The core of the CL in infobar_manager and infobar_service. The rest is just updating ...
6 years, 9 months ago (2014-03-26 17:44:44 UTC) #2
Peter Kasting
LGTM, but I didn't review anything other than infobar_manager.* and infobar_service.*. https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_container.cc File chrome/browser/infobars/infobar_container.cc (right): ...
6 years, 9 months ago (2014-03-26 23:51:29 UTC) #3
blundell
Mostly nits. I reviewed the whole CL. https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_container.h File chrome/browser/infobars/infobar_container.h (right): https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_container.h#newcode48 chrome/browser/infobars/infobar_container.h:48: // the ...
6 years, 9 months ago (2014-03-27 09:40:29 UTC) #4
Peter Kasting
https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_manager.h File chrome/browser/infobars/infobar_manager.h (right): https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_manager.h#newcode88 chrome/browser/infobars/infobar_manager.h:88: void CleanUp(); On 2014/03/27 09:40:30, blundell wrote: > This ...
6 years, 8 months ago (2014-03-27 17:51:32 UTC) #5
droger
On 2014/03/27 17:51:32, Peter Kasting wrote: > https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_manager.h > File chrome/browser/infobars/infobar_manager.h (right): > > https://codereview.chromium.org/211273007/diff/400001/chrome/browser/infobars/infobar_manager.h#newcode88 ...
6 years, 8 months ago (2014-03-27 18:00:12 UTC) #6
Peter Kasting
On 2014/03/27 18:00:12, droger wrote: > On 2014/03/27 17:51:32, Peter Kasting wrote: > > > ...
6 years, 8 months ago (2014-03-27 18:11:06 UTC) #7
droger
> I wonder if we're making a mistake plumbing this through InfoBarManager, > InfoBar, and ...
6 years, 8 months ago (2014-03-27 18:25:39 UTC) #8
Peter Kasting
On 2014/03/27 18:25:39, droger wrote: > > I wonder if we're making a mistake plumbing ...
6 years, 8 months ago (2014-03-27 18:29:33 UTC) #9
droger
I renamed InfoBarManager::CleanUp as InfoBarManager::OnWebContentsDestroyed for now, and we'll see later how to handle the ...
6 years, 8 months ago (2014-03-28 14:04:53 UTC) #10
Peter Kasting
On 2014/03/28 14:04:53, droger wrote: > I renamed InfoBarManager::CleanUp as InfoBarManager::OnWebContentsDestroyed for > now, and ...
6 years, 8 months ago (2014-03-28 17:52:27 UTC) #11
droger
blundell: ping
6 years, 8 months ago (2014-03-31 08:11:45 UTC) #12
blundell
LGTM https://codereview.chromium.org/211273007/diff/520001/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): https://codereview.chromium.org/211273007/diff/520001/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode805 chrome/browser/ui/gtk/browser_window_gtk.cc:805: InfoBarManager* infobar_manager = NULL; Optional thought for a ...
6 years, 8 months ago (2014-03-31 08:29:21 UTC) #13
droger
TBR jochen for everything except infobars, ui and translate
6 years, 8 months ago (2014-03-31 09:50:28 UTC) #14
droger
The CQ bit was checked by droger@chromium.org
6 years, 8 months ago (2014-03-31 09:51:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/211273007/520001
6 years, 8 months ago (2014-03-31 09:51:41 UTC) #16
jochen (gone - plz use gerrit)
lgtm
6 years, 8 months ago (2014-03-31 09:54:07 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 15:35:58 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 8 months ago (2014-03-31 15:35:59 UTC) #19
droger
The CQ bit was checked by droger@chromium.org
6 years, 8 months ago (2014-03-31 16:47:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/211273007/520001
6 years, 8 months ago (2014-03-31 16:49:43 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 20:02:18 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/browser/media/chrome_media_stream_infobar_browsertest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-03-31 20:02:18 UTC) #23
Peter Kasting
https://codereview.chromium.org/211273007/diff/520001/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): https://codereview.chromium.org/211273007/diff/520001/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode805 chrome/browser/ui/gtk/browser_window_gtk.cc:805: InfoBarManager* infobar_manager = NULL; On 2014/03/31 08:29:22, blundell wrote: ...
6 years, 8 months ago (2014-03-31 20:05:33 UTC) #24
droger
https://codereview.chromium.org/211273007/diff/520001/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): https://codereview.chromium.org/211273007/diff/520001/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode805 chrome/browser/ui/gtk/browser_window_gtk.cc:805: InfoBarManager* infobar_manager = NULL; On 2014/03/31 20:05:34, Peter Kasting ...
6 years, 8 months ago (2014-04-01 10:48:33 UTC) #25
droger
The CQ bit was checked by droger@chromium.org
6 years, 8 months ago (2014-04-01 10:48:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/211273007/540001
6 years, 8 months ago (2014-04-01 10:48:47 UTC) #27
droger
I'm trying to land this now, but I'm happy to do a follow up CL ...
6 years, 8 months ago (2014-04-01 11:02:17 UTC) #28
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 11:44:08 UTC) #29
Message was sent while issue was closed.
Change committed as 260847

Powered by Google App Engine
This is Rietveld 408576698