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

Issue 5078002: Disable content-settings GTK-UI for managed content-settings-types (Closed)

Created:
10 years, 1 month ago by markusheintz_
Modified:
9 years, 6 months ago
Reviewers:
markusheintz, Nico
CC:
chromium-reviews, ben+cc_chromium.org, Elliot Glaysher
Visibility:
Public.

Description

Disable content-settings GTK-UI for managed content-settings-types BUG=63176 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66451

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : " #

Total comments: 27

Patch Set 5 : " #

Patch Set 6 : " #

Total comments: 4

Patch Set 7 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -74 lines) Patch
M chrome/browser/gtk/options/content_filter_page_gtk.h View 1 2 3 4 5 6 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/gtk/options/content_filter_page_gtk.cc View 1 2 3 4 5 6 7 chunks +88 lines, -34 lines 0 comments Download
M chrome/browser/gtk/options/cookie_filter_page_gtk.h View 1 2 3 4 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/gtk/options/cookie_filter_page_gtk.cc View 1 2 3 4 5 6 6 chunks +63 lines, -37 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
markusheintz_
Hey Nico please review my CL. Thanks!
10 years, 1 month ago (2010-11-16 15:58:04 UTC) #1
Nico
Overall direction looks good to me. Let me know when you're ready for lower-level comments.
10 years, 1 month ago (2010-11-16 16:00:56 UTC) #2
markusheintz
Great Thanks! On Tue, Nov 16, 2010 at 5:00 PM, <thakis@chromium.org> wrote: > Overall direction ...
10 years, 1 month ago (2010-11-16 16:06:46 UTC) #3
markusheintz_
Please move ahead and review my CL. Thanks! On 2010/11/16 16:06:46, markusheintz wrote: > Great ...
10 years, 1 month ago (2010-11-16 18:19:50 UTC) #4
Nico
erg: fyi http://codereview.chromium.org/5078002/diff/8001/chrome/browser/gtk/options/content_filter_page_gtk.cc File chrome/browser/gtk/options/content_filter_page_gtk.cc (right): http://codereview.chromium.org/5078002/diff/8001/chrome/browser/gtk/options/content_filter_page_gtk.cc#newcode147 chrome/browser/gtk/options/content_filter_page_gtk.cc:147: UpdateButtonsState(); Since you call UpdateButtonsState() _after_ the ...
10 years, 1 month ago (2010-11-16 18:39:11 UTC) #5
markusheintz_
Sry I had to upload 2 patch sets, since I forgot to change some comments. ...
10 years, 1 month ago (2010-11-17 11:21:15 UTC) #6
Nico
LG with comments addressed. http://codereview.chromium.org/5078002/diff/8001/chrome/browser/gtk/options/content_filter_page_gtk.cc File chrome/browser/gtk/options/content_filter_page_gtk.cc (right): http://codereview.chromium.org/5078002/diff/8001/chrome/browser/gtk/options/content_filter_page_gtk.cc#newcode181 chrome/browser/gtk/options/content_filter_page_gtk.cc:181: // Disable the UI if ...
10 years, 1 month ago (2010-11-17 14:14:23 UTC) #7
markusheintz_
10 years, 1 month ago (2010-11-17 16:43:50 UTC) #8
Thanks.

http://codereview.chromium.org/5078002/diff/21001/chrome/browser/gtk/options/...
File chrome/browser/gtk/options/content_filter_page_gtk.cc (right):

http://codereview.chromium.org/5078002/diff/21001/chrome/browser/gtk/options/...
chrome/browser/gtk/options/content_filter_page_gtk.cc:202: return;
On 2010/11/17 14:14:28, Nico wrote:
> Is this necessary, or is this just here for cleanliness?

The same approach is already used in cookie_filter_page_gtk.cc. This is
basically where I copied the idea from. I'd like to avoid unnecessary method
calls. If the radio_button that is toggled off triggers the "OnAllowToggled"
method the method set's the content_setting to it's current value. This is not a
big deal, but it also triggers a CONTENT_SETTINGS_CHANGE event and causes more
unnecessary method calls. I'd like to avoid this, especially since the same code
path is executed again afterwards just to change to setting to the new value.

http://codereview.chromium.org/5078002/diff/21001/chrome/browser/gtk/options/...
File chrome/browser/gtk/options/cookie_filter_page_gtk.cc (right):

http://codereview.chromium.org/5078002/diff/21001/chrome/browser/gtk/options/...
chrome/browser/gtk/options/cookie_filter_page_gtk.cc:60: ignore_toggle_ = true;
On 2010/11/17 14:14:28, Nico wrote:
> You might want to use base/auto_reset in this function, so that the member is
> reset correctly in the future when someone adds a return in the middle of the
> function.

Great suggestion. Thanks. DONE.

Powered by Google App Engine
This is Rietveld 408576698