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

Issue 10830353: Introduce InfoBarTabService API. (Closed)

Created:
8 years, 4 months ago by Jói
Modified:
8 years, 3 months ago
CC:
chromium-reviews, kkania, browser-components-watch_chromium.org, stuartmorgan+watch_chromium.org, dmazzoni+watch_chromium.org, ajwong+watch_chromium.org, markusheintz_, dhollowa+watch_chromium.org, aboxhall+watch_chromium.org, Ilya Sherman, jam, darin-cc_chromium.org, brettw-cc_chromium.org, dtseng+watch_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, rdsmith+dwatch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org, mihaip-chromium-reviews_chromium.org, hashimoto+watch_chromium.org, tfarina, davidbarr+watch_chromium.org, Aaron Boodman, robertshield, dyu1
Visibility:
Public.

Description

Introduce InfoBarTabService API. The new interface extracts the API bits from InfoBarTabHelper. This change switches files under chrome/browser/autofill and chrome/browser/api to use the API and remove the temporarily-allowed dependency on InfoBarTabHelper. TBRing other owners as the changes are just to match the updated API and include paths. TBR=ben@chromium.org BUG=140037 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152338

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 24

Patch Set 3 : Respond to review comments #

Total comments: 10

Patch Set 4 : Respond to review comments, merge to LKGR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -297 lines) Patch
M chrome/browser/accessibility/accessibility_extension_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/alternate_nav_url_fetcher.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/api/infobars/DEPS View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/api/infobars/confirm_infobar_delegate.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/api/infobars/confirm_infobar_delegate.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/api/infobars/infobar_delegate.h View 1 2 3 4 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/api/infobars/infobar_delegate.cc View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
A chrome/browser/api/infobars/infobar_tab_service.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/api/infobars/link_infobar_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/api/infobars/link_infobar_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/api/infobars/simple_alert_infobar_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/api/infobars/simple_alert_infobar_delegate.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_cc_infobar_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_cc_infobar_delegate.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/autofill/autofill_feedback_infobar_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_feedback_infobar_delegate.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/download/download_request_infobar_delegate.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/download/download_request_infobar_delegate.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_default.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 18 chunks +31 lines, -31 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/infobars/infobar_container.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/infobars/infobar_tab_helper.h View 3 chunks +12 lines, -36 lines 0 comments Download
M chrome/browser/infobars/infobar_tab_helper.cc View 1 2 3 4 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/infobars/infobars_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.cc View 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/plugin_infobar_delegates.h View 1 2 3 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/plugin_infobar_delegates.cc View 1 2 3 14 chunks +27 lines, -23 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_ssl_helper.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/options_menu_model.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 5 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/android/infobar_stubs.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/auto_login_info_bar_delegate.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/extension_infobar_controller.mm View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/media_stream_infobar_controller.mm View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/keystone_infobar_delegate.mm View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/collected_cookies_infobar_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/collected_cookies_infobar_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/link_infobar_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/link_infobar_gtk.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/media_stream_infobar_delegate.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/media_stream_infobar_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/autolaunch_prompt_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/obsolete_os_info_bar.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/session_crashed_prompt.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/link_infobar.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/media_stream_infobar.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_infobar_base.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_infobar_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Jói
erikwright: Main reviewer. pkasting: Optional reviewer, this is all mechanical except if you want to ...
8 years, 4 months ago (2012-08-16 10:21:37 UTC) #1
tfarina
http://codereview.chromium.org/10830353/diff/1090/chrome/browser/api/infobars/infobar_tab_service.h File chrome/browser/api/infobars/infobar_tab_service.h (right): http://codereview.chromium.org/10830353/diff/1090/chrome/browser/api/infobars/infobar_tab_service.h#newcode20 chrome/browser/api/infobars/infobar_tab_service.h:20: static InfoBarTabService* GetInstance(TabContents* tab_contents); According to crbug.com/68682 static methods ...
8 years, 4 months ago (2012-08-16 12:14:35 UTC) #2
Jói
http://codereview.chromium.org/10830353/diff/1090/chrome/browser/api/infobars/infobar_tab_service.h File chrome/browser/api/infobars/infobar_tab_service.h (right): http://codereview.chromium.org/10830353/diff/1090/chrome/browser/api/infobars/infobar_tab_service.h#newcode20 chrome/browser/api/infobars/infobar_tab_service.h:20: static InfoBarTabService* GetInstance(TabContents* tab_contents); On 2012/08/16 12:14:35, tfarina wrote: ...
8 years, 4 months ago (2012-08-16 12:23:32 UTC) #3
erikwright (departed)
I see lots of cases using the Helper when they should be able to switch ...
8 years, 4 months ago (2012-08-16 17:25:38 UTC) #4
Jói
PTAL http://codereview.chromium.org/10830353/diff/1090/chrome/browser/api/infobars/infobar_delegate.cc File chrome/browser/api/infobars/infobar_delegate.cc (right): http://codereview.chromium.org/10830353/diff/1090/chrome/browser/api/infobars/infobar_delegate.cc#newcode93 chrome/browser/api/infobars/infobar_delegate.cc:93: InfoBarDelegate::InfoBarDelegate(InfoBarTabService* infobar_helper) On 2012/08/16 17:25:38, erikwright wrote: > ...
8 years, 4 months ago (2012-08-17 15:51:23 UTC) #5
erikwright (departed)
LGTM assuming that I'm right about the 'friend' declaration being unnecessary. Otherwise some kind of ...
8 years, 4 months ago (2012-08-20 05:54:45 UTC) #6
Jói
Thanks Erik. The InfoBarDelegate subclasses touched by this change now deal only in InfoBarTabService. OTOH, ...
8 years, 4 months ago (2012-08-20 12:30:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10830353/11002
8 years, 4 months ago (2012-08-20 13:53:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10830353/4008
8 years, 4 months ago (2012-08-20 14:06:24 UTC) #9
commit-bot: I haz the power
Change committed as 152338
8 years, 4 months ago (2012-08-20 16:34:21 UTC) #10
Peter Kasting
Is InfoBarTabHelper the only class that will ever implement InfoBarTabService? If so, is it possible ...
8 years, 4 months ago (2012-08-25 23:09:34 UTC) #11
Jói
Hi Peter, There was extensive discussion and even a design meeting on the subject of ...
8 years, 3 months ago (2012-08-27 15:49:44 UTC) #12
Peter Kasting
8 years, 3 months ago (2012-08-27 18:24:29 UTC) #13
OK, if other folks are convinced this is the best way to go, I don't have the
perspective to disagree.

Powered by Google App Engine
This is Rietveld 408576698