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

Issue 1520543004: Add method for identifying different InfoBars (Closed)

Created:
5 years ago by gone
Modified:
4 years, 11 months ago
CC:
chromium-reviews, asanka, posciak+watch_chromium.org, browser-components-watch_chromium.org, bondd+autofillwatch_chromium.org, native-client-reviews_googlegroups.com, cbentzel+watch_chromium.org, toyoshim+midi_chromium.org, jam, rouslan+autofill_chromium.org, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, kcarattini+watch_chromium.org, feature-media-reviews_chromium.org, Michael van Ouwerkerk, mlamouri+watch-permissions_chromium.org, piman+watch_chromium.org, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, mlamouri+watch-geolocation_chromium.org, mcasas+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add method for identifying different InfoBars * Adds InfoBarDelegate::GetIdentifier(), which returns an enum identifying the InfoBar being created. Generally, this is the name of the InfoBarDelegate, but in cases of classes using SimpleAlertInfoBarDelegates (or other wrapper classes), it uses the name of the class using the delegate. * Adds a histogram that records which infobars were shown to the user via InfoBarContainer#AddInfoBar(). BUG=567483 Committed: https://crrev.com/ac4d93be8bc37c31f3b19749272e5d176eb8d2cf Cr-Commit-Position: refs/heads/master@{#367176}

Patch Set 1 #

Patch Set 2 : More infobars #

Patch Set 3 : Missed some infobars #

Patch Set 4 : Yet another infobar #

Patch Set 5 : Yet another mac infobar #

Patch Set 6 : #

Patch Set 7 : Renaming, cleaning #

Patch Set 8 : Histogram #

Patch Set 9 : Android compile error #

Patch Set 10 : Histogram values #

Patch Set 11 : Typos #

Total comments: 2

Patch Set 12 : Addressing nit #

Patch Set 13 : Experiment #

Patch Set 14 : Includes #

Patch Set 15 : Rebasing for compile error #

Patch Set 16 : Reverting #

Total comments: 2

Patch Set 17 : Nit #

Patch Set 18 : Rebasing #

Total comments: 5

Patch Set 19 : Comments #

Patch Set 20 : Removed word #

Patch Set 21 : New infobar #

Patch Set 22 : Rebasing #

Patch Set 23 : std::string -> const char* #

Patch Set 24 : Switched to enum #

Patch Set 25 : Missed a spot. #

Total comments: 8

Patch Set 26 : Comments #

Patch Set 27 : -1 to INVALID #

Total comments: 2

Patch Set 28 : Nit #

Patch Set 29 : Nit again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -11 lines) Patch
M chrome/browser/android/banners/app_banner_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/download/chrome_download_manager_overwrite_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/download/chrome_download_manager_overwrite_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/fullscreen/fullscreen_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/hung_renderer_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/hung_renderer_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/media/media_throttle_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/media/media_throttle_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/apps/window_controls_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_infobar_delegate_desktop.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_infobar_delegate_desktop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_quota_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_ui_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/devtools/global_confirm_info_bar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/download/download_request_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_request_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/debugger/debugger_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/incognito_connectability.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/theme_installed_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/gpu/three_d_api_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_permission_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/notification_permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/save_password_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/save_password_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/pepper_broker_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/pepper_broker_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_update_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_update_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_infobar_delegates.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_infobar_delegates.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_add_certificate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/storage/durable_storage_permission_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/storage/durable_storage_permission_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/chrome_select_file_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/keystone_infobar_delegate.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/collected_cookies_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/collected_cookies_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_install_ui_default.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/google_api_keys_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/obsolete_system_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/session_crashed_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/session_crashed_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_cc_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_cc_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_container.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +8 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +64 lines, -0 lines 0 comments Download
M components/infobars/core/simple_alert_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +16 lines, -9 lines 0 comments Download
M components/infobars/core/simple_alert_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +9 lines, -1 line 0 comments Download
M components/translate/core/browser/translate_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M components/translate/core/browser/translate_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +65 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (11 generated)
gone
Peter: Is this a reasonable way to add an identifier to each infobar? Went this ...
5 years ago (2015-12-14 23:22:20 UTC) #4
Peter Kasting
Another way of doing this that would be less intrusive (but slightly less granular) would ...
5 years ago (2015-12-14 23:59:14 UTC) #5
gone
Yeah, I agree the string definitions aren't great :/ Checking the value of GetIconId() won't ...
5 years ago (2015-12-15 00:59:54 UTC) #6
Peter Kasting
I don't really have a good gut feeling on strings vs. enum.
5 years ago (2015-12-15 01:28:58 UTC) #7
gone
I guess one problem with using an enum is that the InfoBarDelegate is defined in ...
5 years ago (2015-12-15 01:29:41 UTC) #8
rkaplow
On 2015/12/15 01:29:41, dfalcantara wrote: > I guess one problem with using an enum is ...
5 years ago (2015-12-15 18:03:37 UTC) #9
gone
Some sort of way to do compile-time hashing of a string to an int would ...
5 years ago (2015-12-15 18:36:37 UTC) #10
Peter Kasting
Since we can't decide, let's just do what you have now. LGTM
5 years ago (2015-12-15 20:01:50 UTC) #11
rkaplow
Can you add a bit more in the comment about the enum in infobar_delegate.h to ...
5 years ago (2015-12-15 20:11:13 UTC) #12
gone
In that case, would it make sense to pull out the bit in InfoBarContainer::AddInfoBar that ...
5 years ago (2015-12-15 21:02:00 UTC) #13
rkaplow
On 2015/12/15 21:02:00, dfalcantara wrote: > In that case, would it make sense to pull ...
5 years ago (2015-12-15 21:11:07 UTC) #14
gone
Was actually suggesting something like the new Patch Set 13, where a class has a ...
5 years ago (2015-12-15 21:32:11 UTC) #15
rkaplow
lgtm seems cleaner to me too. You can add me as an owner to the ...
5 years ago (2015-12-15 22:39:29 UTC) #16
gone
Cool, done. Peter: Does the new patch still look alright?
5 years ago (2015-12-15 23:26:14 UTC) #17
Peter Kasting
No, I view the new class as overhead with no benefit. The old way was ...
5 years ago (2015-12-16 06:13:09 UTC) #18
gone
Alright; went back to the version without the extra static class (thanks for the link!) ...
5 years ago (2015-12-16 19:49:07 UTC) #19
gone
+jam to review the mechanical changes across all the delegates +isherman to review the changes ...
5 years ago (2015-12-16 19:50:27 UTC) #21
Peter Kasting
https://codereview.chromium.org/1520543004/diff/300001/components/infobars/core/infobar_delegate.h File components/infobars/core/infobar_delegate.h (right): https://codereview.chromium.org/1520543004/diff/300001/components/infobars/core/infobar_delegate.h#newcode87 components/infobars/core/infobar_delegate.h:87: // Implementers must update the InfoBarType enum in histograms.xml, ...
5 years ago (2015-12-16 21:02:46 UTC) #22
gone
https://chromiumcodereview.appspot.com/1520543004/diff/300001/components/infobars/core/infobar_delegate.h File components/infobars/core/infobar_delegate.h (right): https://chromiumcodereview.appspot.com/1520543004/diff/300001/components/infobars/core/infobar_delegate.h#newcode87 components/infobars/core/infobar_delegate.h:87: // Implementers must update the InfoBarType enum in histograms.xml, ...
5 years ago (2015-12-16 22:53:11 UTC) #23
Ilya Sherman
metrics LGTM % nits: https://codereview.chromium.org/1520543004/diff/340001/components/infobars/core/infobar_container.cc File components/infobars/core/infobar_container.cc (right): https://codereview.chromium.org/1520543004/diff/340001/components/infobars/core/infobar_container.cc#newcode160 components/infobars/core/infobar_container.cc:160: int hashed_id = static_cast<base::HistogramBase::Sample>( nit: ...
5 years ago (2015-12-16 23:41:52 UTC) #24
gone
https://codereview.chromium.org/1520543004/diff/340001/components/infobars/core/infobar_container.cc File components/infobars/core/infobar_container.cc (right): https://codereview.chromium.org/1520543004/diff/340001/components/infobars/core/infobar_container.cc#newcode160 components/infobars/core/infobar_container.cc:160: int hashed_id = static_cast<base::HistogramBase::Sample>( On 2015/12/16 23:41:52, Ilya Sherman ...
5 years ago (2015-12-17 00:34:59 UTC) #25
gone
jam@ is apparently out for the holidays. Trying my luck with thakis@.
5 years ago (2015-12-18 18:26:09 UTC) #27
gone
+droger@ for components/
5 years ago (2015-12-18 18:28:00 UTC) #29
vabr (Chromium)
@dfalcantara -- you might also want to check the very recently added ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.*
5 years ago (2015-12-18 18:31:27 UTC) #30
droger
Translate lgtm
5 years ago (2015-12-19 06:18:42 UTC) #31
gone
Cool, thanks for the heads up on the other infobar. Updated & rebased.
5 years ago (2015-12-22 20:21:41 UTC) #32
Nico
Does this really have to return a std::string? All places return a literal as far ...
5 years ago (2015-12-22 21:50:21 UTC) #33
gone
Almost all the places do, yeah. The one place it doesn't is SimpleAlertInfoBarDelegate, which is ...
5 years ago (2015-12-22 22:15:33 UTC) #34
Nico
On Tue, Dec 22, 2015 at 5:15 PM, <dfalcantara@chromium.org> wrote: > Almost all the places ...
5 years ago (2015-12-22 22:22:15 UTC) #35
Nico
On Tue, Dec 22, 2015 at 5:15 PM, <dfalcantara@chromium.org> wrote: > Almost all the places ...
5 years ago (2015-12-22 22:22:17 UTC) #36
gone
histograms.xml seemed kind of special in that regard... I mean it even has entries about ...
5 years ago (2015-12-22 22:40:03 UTC) #37
Peter Kasting
Switching to const char* seems fine. Regarding an enum versus const char*, I have a ...
5 years ago (2015-12-22 23:13:08 UTC) #38
gone
Yeah, I agree that having the developer explicitly compute the value of the hashed string ...
4 years, 11 months ago (2015-12-28 20:54:51 UTC) #39
Peter Kasting
On 2015/12/28 20:54:51, dfalcantara wrote: > Yeah, I agree that having the developer explicitly compute ...
4 years, 11 months ago (2015-12-28 22:28:32 UTC) #40
gone
Uploaded a new CL, but I'm still running it through the bots to see what ...
4 years, 11 months ago (2015-12-29 01:17:56 UTC) #41
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/1520543004/diff/480001/chrome/browser/devtools/global_confirm_info_bar.cc File chrome/browser/devtools/global_confirm_info_bar.cc (right): https://chromiumcodereview.appspot.com/1520543004/diff/480001/chrome/browser/devtools/global_confirm_info_bar.cc#newcode58 chrome/browser/devtools/global_confirm_info_bar.cc:58: : INVALID_ID; Uggghhhh. This really shouldn't be needed; ...
4 years, 11 months ago (2015-12-30 01:52:57 UTC) #43
gone
Alright, I think that should be everything. Running it through the trybots again now. Peter: ...
4 years, 11 months ago (2015-12-30 07:29:03 UTC) #44
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/1520543004/diff/520001/components/infobars/core/infobar_container.cc File components/infobars/core/infobar_container.cc (right): https://chromiumcodereview.appspot.com/1520543004/diff/520001/components/infobars/core/infobar_container.cc#newcode160 components/infobars/core/infobar_container.cc:160: DCHECK(infobar->delegate()->GetIdentifier() != InfoBarDelegate::INVALID); Nit: DCHECK_NE(InfoBarDelegate::INVALID, infobar->delegate()->GetIdentifier());
4 years, 11 months ago (2015-12-30 13:09:26 UTC) #45
Nico
rs-lgtm
4 years, 11 months ago (2015-12-30 14:27:51 UTC) #46
gone
Thanks! https://codereview.chromium.org/1520543004/diff/520001/components/infobars/core/infobar_container.cc File components/infobars/core/infobar_container.cc (right): https://codereview.chromium.org/1520543004/diff/520001/components/infobars/core/infobar_container.cc#newcode160 components/infobars/core/infobar_container.cc:160: DCHECK(infobar->delegate()->GetIdentifier() != InfoBarDelegate::INVALID); On 2015/12/30 13:09:26, Peter Kasting ...
4 years, 11 months ago (2015-12-30 18:38:43 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1520543004/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1520543004/560001
4 years, 11 months ago (2015-12-30 18:39:31 UTC) #50
commit-bot: I haz the power
Committed patchset #29 (id:560001)
4 years, 11 months ago (2015-12-30 20:07:36 UTC) #52
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 20:08:37 UTC) #54
Message was sent while issue was closed.
Patchset 29 (id:??) landed as
https://crrev.com/ac4d93be8bc37c31f3b19749272e5d176eb8d2cf
Cr-Commit-Position: refs/heads/master@{#367176}

Powered by Google App Engine
This is Rietveld 408576698