Chromium Code Reviews
Help | Chromium Project | Sign in
(6)

Issue 2835031: Rename GeolocationExceptionsView, make it more reusable. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 11 months ago by Nico
Modified:
4 years ago
Reviewers:
bulach
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Rename GeolocationExceptionsView, make it more reusable. Specifically, geolocation_exceptions_window_controller => simple_content_exceptions_window_controller (mac) geolocation_exceptions_view => simple_content_exceptions_view (win) geolocation_content_exceptions_window => simple_content_exceptions_window (linux) It's now easy to use it to show desktop notification exceptions as well. No functionality change. BUG=45547 TEST=geolocation exceptions dialog still works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51392

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : windows compile #

Total comments: 3

Patch Set 4 : linux compile #

Patch Set 5 : mac compile #

Total comments: 5

Patch Set 6 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -231 lines) Patch
A + chrome/app/nibs/SimpleContentExceptionsWindow.xib View 1 8 chunks +80 lines, -80 lines 0 comments Download
M chrome/browser/cocoa/content_settings_dialog_controller.mm View 2 chunks +5 lines, -2 lines 0 comments Download
A + chrome/browser/cocoa/simple_content_exceptions_window_controller.h View 1 1 chunk +11 lines, -12 lines 0 comments Download
A + chrome/browser/cocoa/simple_content_exceptions_window_controller.mm View 1 2 6 chunks +20 lines, -23 lines 0 comments Download
A + chrome/browser/cocoa/simple_content_exceptions_window_controller_unittest.mm View 1 2 3 4 4 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/gtk/options/content_filter_page_gtk.cc View 2 chunks +5 lines, -3 lines 0 comments Download
A + chrome/browser/gtk/options/simple_content_exceptions_window.h View 5 chunks +16 lines, -16 lines 0 comments Download
A + chrome/browser/gtk/options/simple_content_exceptions_window.cc View 1 2 3 4 5 5 chunks +20 lines, -20 lines 0 comments Download
M chrome/browser/views/options/content_filter_page_view.cc View 2 chunks +5 lines, -3 lines 0 comments Download
A + chrome/browser/views/options/simple_content_exceptions_view.h View 1 2 4 chunks +20 lines, -22 lines 0 comments Download
A + chrome/browser/views/options/simple_content_exceptions_view.cc View 1 2 3 4 5 7 chunks +30 lines, -29 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 8 chunks +7 lines, -7 lines 0 comments Download
M chrome/chrome_dll.gypi View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 2 chunks +1 line, -1 line 0 comments Download
Commit: CQ not working?

Messages

Total messages: 3 (0 generated)
Nico
4 years, 11 months ago (2010-07-01 17:11:20 UTC) #1
bulach
LGTM few minor comments below, specially about the ownership transferring in the factory methods for ...
4 years, 11 months ago (2010-07-01 18:18:51 UTC) #2
Nico
4 years, 11 months ago (2010-07-01 18:25:01 UTC) #3
Thanks!

http://codereview.chromium.org/2835031/diff/6001/4010
File chrome/browser/cocoa/simple_content_exceptions_window_controller.h (right):

http://codereview.chromium.org/2835031/diff/6001/4010#newcode31
chrome/browser/cocoa/simple_content_exceptions_window_controller.h:31: +
(id)controllerWithTableModel:(RemoveRowsTableModel*)model;
On 2010/07/01 18:18:52, bulach wrote:
> not sure about the rules, but either controllerWithModel or
> controllerWithRemoveRowsTableModel?

I had controllerWithModel first, but that sounded to general.
controllerWithRemoveRowsTableModel sounds too wordy imho. I'd keep the current
name.

http://codereview.chromium.org/2835031/diff/8001/9007
File chrome/browser/gtk/options/simple_content_exceptions_window.cc (right):

http://codereview.chromium.org/2835031/diff/8001/9007#newcode25
chrome/browser/gtk/options/simple_content_exceptions_window.cc:25:
DCHECK(model);
On 2010/07/01 18:18:52, bulach wrote:
> scoped_ptr<RemoveRowsTableModel> owned_model(model);

Ooh, good catch! Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be