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

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed)

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

Description

Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. Also, consolidate infobar delegate interfaces under infobars/ rather than some under infobars/ and some under tab_contents/, as the ones under tab_contents/ were not coupled with tab_contents/ in any way. Remove feedback/proto/extension.pb.h from Autofill's DEPS file simply by dropping the include, it was not being used. BUG=140037, 138280 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151279

Patch Set 1 #

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : Address review comments. #

Total comments: 5

Patch Set 4 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -812 lines) Patch
M chrome/browser/accessibility/accessibility_extension_api.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/accessibility/accessibility_extension_apitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/alternate_nav_url_fetcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/api/DEPS View 1 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/api/OWNERS View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/api/infobars/DEPS View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/api/infobars/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/api/infobars/confirm_infobar_delegate.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/api/infobars/confirm_infobar_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/api/infobars/infobar_delegate.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/api/infobars/infobar_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/api/infobars/link_infobar_delegate.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
A + chrome/browser/api/infobars/link_infobar_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/api/infobars/simple_alert_infobar_delegate.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/api/infobars/simple_alert_infobar_delegate.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/DEPS View 2 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_cc_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_country.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_feedback_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_feedback_infobar_delegate.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_quota_permission_context.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_request_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/debugger/debugger_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/app_notify_channel_ui_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_ui_default.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/infobars/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/infobars/infobar.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/infobars/infobar.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/infobars/infobar_container.cc View 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/infobars/infobar_delegate.h View 1 chunk +0 lines, -146 lines 0 comments Download
D chrome/browser/infobars/infobar_delegate.cc View 1 2 1 chunk +0 lines, -118 lines 0 comments Download
M chrome/browser/infobars/infobar_extension_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/infobars/infobar_tab_helper.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/infobars/infobars_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/infobars/insecure_content_infobar_delegate.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/infobars/insecure_content_infobar_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/intents/register_intent_handler_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/omnibox_search_hint.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_manager_delegate_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugin_infobar_delegates.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugin_observer.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/tab_contents/confirm_infobar_delegate.h View 1 chunk +0 lines, -76 lines 0 comments Download
D chrome/browser/tab_contents/confirm_infobar_delegate.cc View 1 1 chunk +0 lines, -66 lines 0 comments Download
D chrome/browser/tab_contents/insecure_content_infobar_delegate.h View 1 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/tab_contents/insecure_content_infobar_delegate.cc View 1 1 chunk +0 lines, -90 lines 0 comments Download
D chrome/browser/tab_contents/link_infobar_delegate.h View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/tab_contents/link_infobar_delegate.cc View 1 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/browser/tab_contents/simple_alert_infobar_delegate.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/tab_contents/simple_alert_infobar_delegate.cc View 1 1 chunk +0 lines, -38 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_ssl_helper.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/infobar_stubs.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/auto_login_info_bar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/auto_login_info_bar_delegate.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_select_file_policy.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller_unittest.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/keystone_infobar_delegate.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/collected_cookies_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/link_infobar_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/media_stream_infobar_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/pdf/pdf_unsupported_feature.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/autolaunch_prompt_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 2 3 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.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/session_crashed_prompt.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_background.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/link_infobar.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/media_stream_infobar.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Jói
Erik, I plan to add ben@ as a reviewer once you agree this looks good. ...
8 years, 4 months ago (2012-08-07 15:54:12 UTC) #1
tfarina
On 2012/08/07 15:54:12, Jói wrote: > Erik, I plan to add ben@ as a reviewer ...
8 years, 4 months ago (2012-08-07 15:57:46 UTC) #2
erikwright (departed)
LGTM. I suggest adding a bug for the continued componentization of infobars. Seems isolated enough ...
8 years, 4 months ago (2012-08-07 21:11:15 UTC) #3
Jói
Hi Thiago, I'm not sure it's good to follow the content/ convention for chrome/ for ...
8 years, 4 months ago (2012-08-08 14:52:19 UTC) #4
Jói
Thanks Erik, sounds good to file a bug for infobars componentization. Would you do the ...
8 years, 4 months ago (2012-08-08 14:53:11 UTC) #5
Jói
+ben@ as reviewer. Will TBR for other required OWNERS approvals since they are just changes ...
8 years, 4 months ago (2012-08-08 14:54:37 UTC) #6
jam
drive-by (didn't look in detail, this caught my attention) http://codereview.chromium.org/10843071/diff/2003/chrome/browser/api/infobars/infobar_tab_helper.h File chrome/browser/api/infobars/infobar_tab_helper.h (right): http://codereview.chromium.org/10843071/diff/2003/chrome/browser/api/infobars/infobar_tab_helper.h#newcode16 chrome/browser/api/infobars/infobar_tab_helper.h:16: ...
8 years, 4 months ago (2012-08-08 16:29:58 UTC) #7
Jói
It's poorly named. InfoBarTabHelper is actually where you go to add an infobar, remove an ...
8 years, 4 months ago (2012-08-08 16:49:11 UTC) #8
jam
On Wed, Aug 8, 2012 at 9:48 AM, Jói Sigurðsson <joi@chromium.org> wrote: > It's poorly ...
8 years, 4 months ago (2012-08-08 16:55:21 UTC) #9
Ben Goodger (Google)
+1. The api dir should contain an abstract interface that the components use to talk ...
8 years, 4 months ago (2012-08-08 17:58:59 UTC) #10
joi
Ben and John, thanks for the feedback. I have some thoughts on this subject but ...
8 years, 4 months ago (2012-08-08 18:37:53 UTC) #11
Jói
[+browser-components-dev] I'm back, so now let me try to explain my thoughts on this. I'm ...
8 years, 4 months ago (2012-08-08 23:20:14 UTC) #12
jam
hey Joi, I'll attempt to answer your main points. Probably might be worth having a ...
8 years, 4 months ago (2012-08-09 00:02:03 UTC) #13
jam
On Wed, Aug 8, 2012 at 5:02 PM, John Abd-El-Malek <jam@chromium.org> wrote: > hey Joi, ...
8 years, 4 months ago (2012-08-09 01:54:31 UTC) #14
tfarina
Peter (pkasting) should be probably added to chrome/browser/api/infobars/OWNERS as he rewrote it ownership model and ...
8 years, 4 months ago (2012-08-09 01:58:15 UTC) #15
joi
Hi Thiago, > Peter (pkasting) should be probably added to > chrome/browser/api/infobars/OWNERS > as he ...
8 years, 4 months ago (2012-08-09 13:16:31 UTC) #16
Jói
Hi John, Yep, a VC chat sounds like a good idea. Let me try to ...
8 years, 4 months ago (2012-08-09 13:33:21 UTC) #17
Jói
I just booked something for 10am in MTV, 1pm in MON, 5pm here. Let me ...
8 years, 4 months ago (2012-08-09 13:40:10 UTC) #18
Jói
Thanks to Ben, John and Erik for their time discussing this with me just now. ...
8 years, 4 months ago (2012-08-09 17:36:43 UTC) #19
Jói
John: What do you think in general of the move of a couple of InfobarDelegate ...
8 years, 4 months ago (2012-08-09 17:40:03 UTC) #20
Ilya Sherman
/cc pkasting
8 years, 4 months ago (2012-08-09 17:55:06 UTC) #21
jam
On Thu, Aug 9, 2012 at 10:39 AM, Jói Sigurðsson <joi@chromium.org> wrote: > John: What ...
8 years, 4 months ago (2012-08-09 18:37:19 UTC) #22
Jói
>> John: What do you think in general of the move of a couple of ...
8 years, 4 months ago (2012-08-10 11:29:26 UTC) #23
Jói
PTAL, updated per discussion. erikwright & jam: Main reviewers since you've previously reviewed this change. ...
8 years, 4 months ago (2012-08-10 12:05:26 UTC) #24
jam
http://codereview.chromium.org/10843071/diff/14001/chrome/browser/infobars/insecure_content_infobar_delegate.h File chrome/browser/infobars/insecure_content_infobar_delegate.h (right): http://codereview.chromium.org/10843071/diff/14001/chrome/browser/infobars/insecure_content_infobar_delegate.h#newcode5 chrome/browser/infobars/insecure_content_infobar_delegate.h:5: #ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ it seems that all the infobar delegates ...
8 years, 4 months ago (2012-08-10 16:13:30 UTC) #25
Peter Kasting
Is there actually anything substantive for me to review? If it's all mechanical I don't ...
8 years, 4 months ago (2012-08-10 17:14:42 UTC) #26
erikwright (departed)
I agree with John that it seems sensible to move all of the infobar delegates ...
8 years, 4 months ago (2012-08-10 19:11:02 UTC) #27
joi
> Is there actually anything substantive for me to review? If it's all > mechanical ...
8 years, 4 months ago (2012-08-13 10:29:05 UTC) #28
Jói
PTAL. Added OWNERS files for infobars/, moved SimpleAlertInfoBarDelegate but not InsecureContentInfoBarDelegate, see details below. Cheers, ...
8 years, 4 months ago (2012-08-13 11:47:54 UTC) #29
jam
lgtm, thanks
8 years, 4 months ago (2012-08-13 15:55:43 UTC) #30
Peter Kasting
I don't have a problem moving all infobars to live somewhere else. I'm a bit ...
8 years, 4 months ago (2012-08-13 17:36:50 UTC) #31
joi
Thanks Peter. The 'api' directory is the set of stuff that Browser Components will be ...
8 years, 4 months ago (2012-08-13 19:45:15 UTC) #32
Peter Kasting
On Mon, Aug 13, 2012 at 12:44 PM, Jói Sigurðsson <joi@google.com> wrote: > The 'api' ...
8 years, 4 months ago (2012-08-14 01:58:20 UTC) #33
joi
Right, the ones being moved are InfoBarDelegate, ConfirmInfoBarDelegate, LinkInfoBarDelegate, and SimpleAlertInfoBarDelegate. The feature-specific ones will ...
8 years, 4 months ago (2012-08-14 11:36:28 UTC) #34
Peter Kasting
8 years, 4 months ago (2012-08-14 17:42:48 UTC) #35
On Tue, Aug 14, 2012 at 4:35 AM, Jói Sigurðsson <joi@google.com> wrote:

> Right, the ones being moved are InfoBarDelegate,
> ConfirmInfoBarDelegate, LinkInfoBarDelegate, and
> SimpleAlertInfoBarDelegate.  The feature-specific ones will stay with
> their respective features.


Moving those four is fine.

PK

Powered by Google App Engine
This is Rietveld 408576698