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

Issue 10440092: Remove any platform specific code from the chrome/browser/website_settings.* . (Closed)

Created:
8 years, 6 months ago by markusheintz_
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Remove any platform specific code from the chrome/browser/website_settings.* . Let the WebsiteSettingsPopupGtk own the WebsiteSettings object. Move all none platform specific website settings code to chrome/browser/ui/website_settings/. BUG=113688 TEST=WebsiteSettingsTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140436

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Total comments: 11

Patch Set 4 : " #

Total comments: 15

Patch Set 5 : Address comments #

Total comments: 30

Patch Set 6 : Address comments (tfarina) #

Total comments: 6

Patch Set 7 : Address comments (tfarina) #

Patch Set 8 : Rebase unittest and delete old unittest file #

Total comments: 2

Patch Set 9 : Address comments (tfarina) #

Total comments: 2

Patch Set 10 : sort includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -1311 lines) Patch
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/website_settings_popup_gtk.h View 1 2 3 4 5 6 7 8 9 3 chunks +30 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/website_settings_popup_gtk.cc View 1 2 3 4 5 6 6 chunks +26 lines, -13 lines 0 comments Download
A chrome/browser/ui/website_settings/OWNERS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/ui/website_settings/website_settings.h View 1 2 3 4 6 chunks +5 lines, -23 lines 0 comments Download
A + chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 6 chunks +2 lines, -31 lines 0 comments Download
A + chrome/browser/ui/website_settings/website_settings_ui.h View 1 2 3 4 3 chunks +4 lines, -8 lines 0 comments Download
A + chrome/browser/ui/website_settings/website_settings_ui.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 3 4 5 6 7 6 chunks +13 lines, -20 lines 0 comments Download
M chrome/browser/ui/website_settings_ui.h View 1 2 3 4 1 chunk +0 lines, -111 lines 0 comments Download
D chrome/browser/ui/website_settings_ui.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M chrome/browser/website_settings.h View 1 2 3 4 1 chunk +0 lines, -207 lines 0 comments Download
M chrome/browser/website_settings.cc View 1 2 3 4 1 chunk +0 lines, -523 lines 0 comments Download
D chrome/browser/website_settings_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -328 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
markusheintz_
@tfarina: As follow up on your comments on CL http://codereview.chromium.org/10456017/: I moved the "Show" method ...
8 years, 6 months ago (2012-05-31 17:22:27 UTC) #1
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1142 chrome/browser/ui/gtk/browser_window_gtk.cc:1142: WebsiteSettingsPopupGtk::Show(GetNativeHandle(), This works for me. But it isn't what ...
8 years, 6 months ago (2012-05-31 17:34:19 UTC) #2
tfarina
On 2012/05/31 17:34:19, tfarina wrote: > If can take a look at how speech and ...
8 years, 6 months ago (2012-05-31 18:56:58 UTC) #3
markusheintz_
Thanks a lot for the clarification and the examples. I used your comments on the ...
8 years, 6 months ago (2012-05-31 19:08:19 UTC) #4
tfarina
I have commented inline. Take in mind that Ben might disagree with me, so do ...
8 years, 6 months ago (2012-05-31 19:23:00 UTC) #5
tfarina
On 2012/05/31 19:08:19, markusheintz_ wrote: > Thanks a lot for the clarification and the examples. ...
8 years, 6 months ago (2012-05-31 19:27:23 UTC) #6
markusheintz_
@Ben: The WebsiteSettingUI currently follows the Model View Presenter pattern where the presenter (WebsiteSettings) is ...
8 years, 6 months ago (2012-05-31 20:07:29 UTC) #7
Ben Goodger (Google)
The approach seems fine. https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1142 chrome/browser/ui/gtk/browser_window_gtk.cc:1142: WebsiteSettingsPopupGtk::Show(GetNativeHandle(), nit: outdent https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/website_settings_popup_gtk.h File ...
8 years, 6 months ago (2012-05-31 20:51:51 UTC) #8
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode14 chrome/browser/ui/gtk/website_settings_popup_gtk.h:14: #include "googleurl/src/gurl.h" nit: please, forward declare this instead. https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode17 ...
8 years, 6 months ago (2012-05-31 23:58:08 UTC) #9
markusheintz_
https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode31 chrome/browser/ui/gtk/website_settings_popup_gtk.h:31: class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, On 2012/05/31 19:23:01, tfarina ...
8 years, 6 months ago (2012-06-01 10:06:06 UTC) #10
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): https://chromiumcodereview.appspot.com/10440092/diff/9001/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode30 chrome/browser/ui/gtk/website_settings_popup_gtk.h:30: // displayed in a popup that is positioned relative ...
8 years, 6 months ago (2012-06-01 21:20:26 UTC) #11
markusheintz_
https://chromiumcodereview.appspot.com/10440092/diff/12002/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): https://chromiumcodereview.appspot.com/10440092/diff/12002/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1143 chrome/browser/ui/gtk/browser_window_gtk.cc:1143: GetNativeHandle(), On 2012/06/01 21:20:26, tfarina wrote: > nit: like ...
8 years, 6 months ago (2012-06-02 21:22:32 UTC) #12
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/12002/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): https://chromiumcodereview.appspot.com/10440092/diff/12002/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode46 chrome/browser/ui/gtk/website_settings_popup_gtk.h:46: virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; On 2012/06/02 21:22:33, ...
8 years, 6 months ago (2012-06-03 16:09:04 UTC) #13
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/20001/chrome/browser/ui/gtk/website_settings_popup_gtk.cc File chrome/browser/ui/gtk/website_settings_popup_gtk.cc (right): https://chromiumcodereview.appspot.com/10440092/diff/20001/chrome/browser/ui/gtk/website_settings_popup_gtk.cc#newcode7 chrome/browser/ui/gtk/website_settings_popup_gtk.cc:7: #include "base/compiler_specific.h" nit: remove this, already included in header ...
8 years, 6 months ago (2012-06-03 16:12:19 UTC) #14
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/20001/chrome/browser/ui/website_settings/website_settings_unittest.cc File chrome/browser/ui/website_settings/website_settings_unittest.cc (right): https://chromiumcodereview.appspot.com/10440092/diff/20001/chrome/browser/ui/website_settings/website_settings_unittest.cc#newcode112 chrome/browser/ui/website_settings/website_settings_unittest.cc:112: website_settings_.reset(NULL); nit: website_settings_.reset(); https://chromiumcodereview.appspot.com/10440092/diff/20001/chrome/browser/ui/website_settings/website_settings_unittest.cc#newcode145 chrome/browser/ui/website_settings/website_settings_unittest.cc:145: // The UI is ...
8 years, 6 months ago (2012-06-03 16:22:24 UTC) #15
Ben Goodger (Google)
LGTM modulo thiago's comments.
8 years, 6 months ago (2012-06-04 15:24:53 UTC) #16
markusheintz_
http://codereview.chromium.org/10440092/diff/12002/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): http://codereview.chromium.org/10440092/diff/12002/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode46 chrome/browser/ui/gtk/website_settings_popup_gtk.h:46: virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; On 2012/06/03 16:09:04, ...
8 years, 6 months ago (2012-06-04 16:33:54 UTC) #17
tfarina
LGTM, with the following nit. Thanks for the patience! ;) http://codereview.chromium.org/10440092/diff/18006/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): http://codereview.chromium.org/10440092/diff/18006/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode13 ...
8 years, 6 months ago (2012-06-04 20:06:13 UTC) #18
markusheintz_
Thanks a lot for the review. http://codereview.chromium.org/10440092/diff/18006/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): http://codereview.chromium.org/10440092/diff/18006/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode13 chrome/browser/ui/gtk/website_settings_popup_gtk.h:13: #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" On ...
8 years, 6 months ago (2012-06-04 22:32:42 UTC) #19
tfarina
http://codereview.chromium.org/10440092/diff/30006/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): http://codereview.chromium.org/10440092/diff/30006/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode11 chrome/browser/ui/gtk/website_settings_popup_gtk.h:11: #include "base/compiler_specific.h" nit: sort this ;)
8 years, 6 months ago (2012-06-04 22:33:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/10440092/30006
8 years, 6 months ago (2012-06-04 22:34:24 UTC) #21
markusheintz_
The difference between p and P ;-) http://codereview.chromium.org/10440092/diff/30006/chrome/browser/ui/gtk/website_settings_popup_gtk.h File chrome/browser/ui/gtk/website_settings_popup_gtk.h (right): http://codereview.chromium.org/10440092/diff/30006/chrome/browser/ui/gtk/website_settings_popup_gtk.h#newcode11 chrome/browser/ui/gtk/website_settings_popup_gtk.h:11: #include "base/compiler_specific.h" ...
8 years, 6 months ago (2012-06-04 22:39:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/10440092/17004
8 years, 6 months ago (2012-06-04 22:40:56 UTC) #23
commit-bot: I haz the power
Change committed as 140436
8 years, 6 months ago (2012-06-05 00:00:35 UTC) #24
tfarina
https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/website_settings_ui.h File chrome/browser/ui/website_settings_ui.h (right): https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/website_settings_ui.h#newcode100 chrome/browser/ui/website_settings_ui.h:100: class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { On 2012/06/01 10:06:06, ...
8 years, 5 months ago (2012-06-30 19:24:47 UTC) #25
markusheintz_
8 years, 5 months ago (2012-07-02 12:46:05 UTC) #26
Thanks for pointing this out and filing http://crbug.com/135335.

On 2012/06/30 19:24:47, tfarina wrote:
>
https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/w...
> File chrome/browser/ui/website_settings_ui.h (right):
> 
>
https://chromiumcodereview.appspot.com/10440092/diff/1008/chrome/browser/ui/w...
> chrome/browser/ui/website_settings_ui.h:100: class CookieInfoList : public
> std::vector<WebsiteSettingsUI::CookieInfo> {
> On 2012/06/01 10:06:06, markusheintz_ wrote:
> > On 2012/05/31 19:23:01, tfarina wrote:
> > > unrelated: this is very uncommon. I think it's the same as:
> > > 
> > > typedef std::vector<..> CookieInfoList;
> > 
> > I copied this from the cookie monster. This is the same way how the
CookieList
> > is defined.
> > 
> I just found something about this in Item 7 of Effective STL from Scott
Meyers.
> And this is not good, because std::vector doesn't have a virtual destructor,
so
> inheriting from it is a no-no. We should fix this, both here and CookieList.

Powered by Google App Engine
This is Rietveld 408576698