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

Issue 3327016: [Mac] Add per-plugin exceptions to content settings. (Closed)

Created:
10 years, 3 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
Reviewers:
Robert Sesek, Nico
CC:
chromium-reviews, ben+cc_chromium.org, jam, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, stuartmorgan+watch_chromium.org
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

[Mac] Add per-plugin exceptions to content settings. Screenshot: http://www.dropmocks.com/mXMd I'm adding a subclass of NSArrayController, TableModelArrayController, that binds to a RemoveRowsTableModel that can use groups and displays them using group rows in an NSTableView. This cleans up SimpleContentExceptionsWindowController a lot, and the class could also be used for other table models that use groups (keyword editor and autofill). XIB changes: In SimpleContentExceptionsWindow.xib, bind table view to TableModelArrayController instead of using the dataSource outlet. Buttons call actions on TableModelArrayController, and table view delegate also points to it. BUG=39252 TEST=SimpleContentExceptionsWindowControllerTest.*:TableModelArrayControllerTest.*:PluginExceptionsTableModelTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59501

Patch Set 1 #

Total comments: 42

Patch Set 2 : address comments; add another unit test #

Patch Set 3 : sync #

Total comments: 6

Patch Set 4 : move observerbridge to implementation #

Patch Set 5 : nits #

Patch Set 6 : use AutoReset for PluginExceptionsTableModelTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1535 lines, -253 lines) Patch
M chrome/app/nibs/SimpleContentExceptionsWindow.xib View 1 30 chunks +937 lines, -96 lines 0 comments Download
M chrome/browser/cocoa/content_settings_dialog_controller.mm View 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/cocoa/simple_content_exceptions_window_controller.h View 1 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/cocoa/simple_content_exceptions_window_controller.mm View 1 2 3 4 7 chunks +9 lines, -102 lines 0 comments Download
M chrome/browser/cocoa/simple_content_exceptions_window_controller_unittest.mm View 1 5 chunks +36 lines, -8 lines 0 comments Download
A chrome/browser/cocoa/table_model_array_controller.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/table_model_array_controller.mm View 1 2 3 4 1 chunk +245 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/table_model_array_controller_unittest.mm View 1 1 chunk +168 lines, -0 lines 0 comments Download
A chrome/browser/mock_plugin_exceptions_table_model.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/mock_plugin_exceptions_table_model.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/plugin_exceptions_table_model.cc View 1 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/plugin_exceptions_table_model_unittest.cc View 1 2 3 4 5 6 chunks +8 lines, -30 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Bernhard Bauer
Please review. Thanks!
10 years, 3 months ago (2010-09-10 16:28:19 UTC) #1
Nico
cc1objplus: warnings being treated as errors/b/slave/mac/build/src/chrome/browser/cocoa/table_model_array_controller_unittest.mm:95: warning: 'TableModelArrayControllerTest_CheckTitles_Test' has a field 'TableModelArrayControllerTest_CheckTitles_Test::<anonymous>' whose type uses ...
10 years, 3 months ago (2010-09-10 16:33:34 UTC) #2
Nico
Fist pass…looks pretty nice! I'm usually not a huge fan of bindings, but they seem ...
10 years, 3 months ago (2010-09-10 16:47:09 UTC) #3
Robert Sesek
Overall looks pretty good. A bunch of nits, though. One general comment on the line ...
10 years, 3 months ago (2010-09-10 18:54:42 UTC) #4
Nico
On Fri, Sep 10, 2010 at 11:54 AM, <rsesek@chromium.org> wrote: > Overall looks pretty good. ...
10 years, 3 months ago (2010-09-10 21:11:56 UTC) #5
Bernhard Bauer
On 2010/09/10 16:33:34, Nico wrote: > cc1objplus: warnings being treated as > errors Hrm, why ...
10 years, 3 months ago (2010-09-13 13:12:14 UTC) #6
Nico
On 2010/09/13 13:12:14, Bernhard Bauer wrote: > On 2010/09/10 16:33:34, Nico wrote: > > cc1objplus: ...
10 years, 3 months ago (2010-09-13 15:02:26 UTC) #7
Nico
http://codereview.chromium.org/3327016/diff/1/7 File chrome/browser/cocoa/table_model_array_controller.h (right): http://codereview.chromium.org/3327016/diff/1/7#newcode20 chrome/browser/cocoa/table_model_array_controller.h:20: class RemoveRowsObserverBridge : public TableModelObserver { On 2010/09/13 13:12:14, ...
10 years, 3 months ago (2010-09-13 15:04:58 UTC) #8
Nico
http://codereview.chromium.org/3327016/diff/1/9 File chrome/browser/cocoa/table_model_array_controller_unittest.mm (right): http://codereview.chromium.org/3327016/diff/1/9#newcode80 chrome/browser/cocoa/table_model_array_controller_unittest.mm:80: *CommandLine::ForCurrentProcess() = command_line_; On 2010/09/13 13:12:14, Bernhard Bauer wrote: ...
10 years, 3 months ago (2010-09-13 15:20:22 UTC) #9
Robert Sesek
LGTM with nits. http://codereview.chromium.org/3327016/diff/1/7 File chrome/browser/cocoa/table_model_array_controller.h (right): http://codereview.chromium.org/3327016/diff/1/7#newcode43 chrome/browser/cocoa/table_model_array_controller.h:43: On 2010/09/13 13:12:14, Bernhard Bauer wrote: ...
10 years, 3 months ago (2010-09-13 16:16:58 UTC) #10
Bernhard Bauer
On 2010/09/13 15:04:58, Nico wrote: > http://codereview.chromium.org/3327016/diff/1/7 > File chrome/browser/cocoa/table_model_array_controller.h (right): > > http://codereview.chromium.org/3327016/diff/1/7#newcode20 > ...
10 years, 3 months ago (2010-09-13 17:18:52 UTC) #11
Bernhard Bauer
On 2010/09/13 16:16:58, rsesek wrote: > Yes, just add the how-to-use information to the top-level ...
10 years, 3 months ago (2010-09-13 17:20:38 UTC) #12
Nico
On Mon, Sep 13, 2010 at 10:18 AM, <bauerb@chromium.org> wrote: > On 2010/09/13 15:04:58, Nico ...
10 years, 3 months ago (2010-09-13 17:21:35 UTC) #13
Bernhard Bauer
On 2010/09/13 17:21:35, Nico wrote: > I too would prefer a scoped commandline setter over ...
10 years, 3 months ago (2010-09-15 14:51:28 UTC) #14
Nico
10 years, 3 months ago (2010-09-15 15:04:35 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698