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

Issue 6542013: Get rid of browser_prefs::RegisterAllPrefs() (Closed)

Created:
9 years, 10 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., davemoore+watch_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Get rid of browser_prefs::RegisterAllPrefs() Local state and user prefs have always been separate namespaces. We'd like to have proxy configuration in both, so let's stick to the namespace separation and clean up testing code that incorrectly merged the namespaces. BUG=none TEST=compiles and passes tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75536

Patch Set 1 #

Patch Set 2 : Fix some unit tests. #

Patch Set 3 : Fix moar tests. #

Patch Set 4 : Fix metrics_log_unittest.cc #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -65 lines) Patch
D chrome/browser/chromeos/notifications/desktop_notifications_unittest.h View 1 2 3 chunks +5 lines, -1 line 0 comments Download
D chrome/browser/chromeos/notifications/desktop_notifications_unittest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 1 2 3 3 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.h View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.cc View 1 2 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/options/preferences_window_controller.mm View 1 2 2 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm View 1 2 4 chunks +9 lines, -6 lines 2 comments Download
M chrome/test/testing_browser_process.h View 1 2 1 chunk +4 lines, -0 lines 2 comments Download
M chrome/test/testing_profile.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mattias Nissler (ping if slow)
Please review. Pawel, is the ScopedTestingBrowserProcess stuff I did for PrefsControllerTest correct?
9 years, 10 months ago (2011-02-18 16:18:36 UTC) #1
danno
lgtm
9 years, 10 months ago (2011-02-18 16:42:28 UTC) #2
Paweł Hajdan Jr.
http://codereview.chromium.org/6542013/diff/7001/chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm File chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm (right): http://codereview.chromium.org/6542013/diff/7001/chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm#newcode45 chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm:45: browser_process_.get()->SetPrefService(&local_state_); Just use g_browser_process here. http://codereview.chromium.org/6542013/diff/7001/chrome/test/testing_browser_process.h File chrome/test/testing_browser_process.h (right): ...
9 years, 10 months ago (2011-02-18 17:03:43 UTC) #3
Mattias Nissler (ping if slow)
Pawel, I put comments for your consideration. Thanks! http://codereview.chromium.org/6542013/diff/7001/chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm File chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm (right): http://codereview.chromium.org/6542013/diff/7001/chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm#newcode45 chrome/browser/ui/cocoa/options/preferences_window_controller_unittest.mm:45: browser_process_.get()->SetPrefService(&local_state_); ...
9 years, 10 months ago (2011-02-18 17:08:04 UTC) #4
Paweł Hajdan Jr.
9 years, 10 months ago (2011-02-18 19:39:29 UTC) #5
A-ha! LGTM.

I remember a solution in other unit test which uses the cast, but after thinking
about it for a while the solution from this patch sounds better. In fact, I'll
take that into account in my TestingBrowserProcess-related cleanup.

Powered by Google App Engine
This is Rietveld 408576698