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

Issue 1314953009: Refactor WebsiteSettings to operate on a SecurityInfo (Closed)

Created:
5 years, 3 months ago by estark
Modified:
5 years, 3 months ago
Reviewers:
palmer, sky
CC:
chromium-reviews, tfarina, markusheintz_, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor WebsiteSettings to operate on a SecurityInfo Previously, WebsiteSettings operated on a content::SSLStatus. This gave us no convenient place to share policies and calculations that WebsiteSettings shared with other //chrome security UI elements: for example, SHA1 deprecation and ChromeOS policy certs. This CL refactors WebsiteSettings to operate on a SecurityStateModel::SecurityInfo instead of a content::SSLStatus. The SecurityInfo object already contains information about, for example, SHA1 deprecation, so that WebsiteSettings doesn't have to compute that on its own. BUG=528034 Committed: https://crrev.com/a3121f6b5613d73812729c8197f3dd7877fbefbe Cr-Commit-Position: refs/heads/master@{#349772}

Patch Set 1 #

Patch Set 2 : update missed android, chromeos, mac callsites #

Patch Set 3 : another mac callsite #

Patch Set 4 : add WebsiteSettings unit tests and fix bugs #

Patch Set 5 : force compiler error if a connection status doesn't translate to icon #

Patch Set 6 : rebase on top of https://codereview.chromium.org/1349843003/ #

Patch Set 7 : rebase #

Total comments: 2

Patch Set 8 : palmer comment #

Patch Set 9 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -231 lines) Patch
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 5 3 chunks +13 lines, -2 lines 2 comments Download
M chrome/browser/ui/android/connection_info_popup_android.cc View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.cc View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm View 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/browser_dialogs_views_mac.cc View 1 1 chunk +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_info_helper.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.h View 1 2 3 4 5 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.h View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 5 6 7 8 17 chunks +66 lines, -78 lines 1 comment Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 3 4 5 10 chunks +94 lines, -38 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
estark
palmer: woo, another giant refactoring CL for you to take a look at. This is ...
5 years, 3 months ago (2015-09-09 04:39:25 UTC) #2
estark
palmer, this should be ready for you take a look at now, please. My previous ...
5 years, 3 months ago (2015-09-16 21:56:39 UTC) #4
palmer
LGTM, 1 nit. https://codereview.chromium.org/1314953009/diff/140001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (right): https://codereview.chromium.org/1314953009/diff/140001/chrome/browser/ui/website_settings/website_settings.cc#newcode543 chrome/browser/ui/website_settings/website_settings.cc:543: SecurityStateModel::DISPLAYED_MIXED_CONTENT; Nit: Re-phrase this for clarity ...
5 years, 3 months ago (2015-09-17 20:23:01 UTC) #5
estark
Thanks palmer! sky, could you please do an OWNERS review? Most of this CL is ...
5 years, 3 months ago (2015-09-18 00:26:33 UTC) #7
sky
https://codereview.chromium.org/1314953009/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/1314953009/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1750 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1750: SecurityStateModel::SecurityInfo security_info; How come this code is different than ...
5 years, 3 months ago (2015-09-18 15:53:00 UTC) #8
estark
https://codereview.chromium.org/1314953009/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/1314953009/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1750 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1750: SecurityStateModel::SecurityInfo security_info; On 2015/09/18 15:53:00, sky wrote: > How ...
5 years, 3 months ago (2015-09-18 16:06:09 UTC) #9
sky
On 2015/09/18 16:06:09, estark wrote: > https://codereview.chromium.org/1314953009/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc > File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): > > https://codereview.chromium.org/1314953009/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1750 > ...
5 years, 3 months ago (2015-09-18 20:10:33 UTC) #10
sky
Chris IMd and said he did. SO, rubber stamp LGTM
5 years, 3 months ago (2015-09-18 20:21:59 UTC) #11
palmer
> No, that's fine. The only thing keeping me from approving this change is Chris ...
5 years, 3 months ago (2015-09-18 20:23:06 UTC) #12
estark
Thanks sky and palmer!
5 years, 3 months ago (2015-09-18 20:44:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314953009/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314953009/180001
5 years, 3 months ago (2015-09-18 20:44:45 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 3 months ago (2015-09-18 21:16:06 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 21:16:48 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a3121f6b5613d73812729c8197f3dd7877fbefbe
Cr-Commit-Position: refs/heads/master@{#349772}

Powered by Google App Engine
This is Rietveld 408576698