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

Issue 9949033: Removed access to prefs that does not work on Android (Closed)

Created:
8 years, 8 months ago by Jerome
Modified:
8 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org
Visibility:
Public.

Description

Removed access to prefs that does not work on Android This work is useful to make sure at build time that we are not accessing prefs that are not registered. This CL addresses the prefs registered by: BrowserInit::RegisterUserPrefs PinnedTabCodec::RegisterUserPrefs PluginsUI::RegisterUserPrefs PromoResourceService::RegisterUserPrefs Later CL: Browser::RegisterUserPrefs SyncPromoUI::RegisterUserPrefs *::RegisterPrefs BUG=120802 TEST=Compiled and made diff-ed the link error to make sure they are the same. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131994

Patch Set 1 #

Total comments: 7

Patch Set 2 : Added a flag enable_promo_resource_service #

Total comments: 12

Patch Set 3 : Using ENABLE_PROMO_RESOURCE_SERVICE #

Total comments: 2

Patch Set 4 : Fixed nit #

Patch Set 5 : Fix bad ifdef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -11 lines) Patch
M build/common.gypi View 1 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 2 chunks +11 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 6 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Yaron
http://codereview.chromium.org/9949033/diff/1/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): http://codereview.chromium.org/9949033/diff/1/chrome/browser/web_resource/notification_promo.cc#newcode356 chrome/browser/web_resource/notification_promo.cc:356: bool NotificationPromo::IsBuildAllowed(int builds_allowed) const { Seems like we might ...
8 years, 8 months ago (2012-04-09 17:12:55 UTC) #1
Dan Beam
http://codereview.chromium.org/9949033/diff/1/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): http://codereview.chromium.org/9949033/diff/1/chrome/browser/web_resource/notification_promo.cc#newcode356 chrome/browser/web_resource/notification_promo.cc:356: bool NotificationPromo::IsBuildAllowed(int builds_allowed) const { On 2012/04/09 17:12:55, Yaron ...
8 years, 8 months ago (2012-04-09 17:20:16 UTC) #2
Jerome
adding enable_promo_resource_service and removing the ifdefs there just worked. Thanks! http://codereview.chromium.org/9949033/diff/1/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): http://codereview.chromium.org/9949033/diff/1/chrome/browser/web_resource/notification_promo.cc#newcode356 ...
8 years, 8 months ago (2012-04-09 18:24:05 UTC) #3
Yaron
http://codereview.chromium.org/9949033/diff/8001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/9949033/diff/8001/chrome/browser/profiles/profile_impl.cc#newcode432 chrome/browser/profiles/profile_impl.cc:432: #if !defined(OS_ANDROID) Change if-def to ENABLE_*. http://codereview.chromium.org/9949033/diff/8001/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h ...
8 years, 8 months ago (2012-04-09 18:31:54 UTC) #4
Jerome
http://codereview.chromium.org/9949033/diff/8001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/9949033/diff/8001/chrome/browser/profiles/profile_impl.cc#newcode432 chrome/browser/profiles/profile_impl.cc:432: #if !defined(OS_ANDROID) On 2012/04/09 18:31:54, Yaron wrote: > Change ...
8 years, 8 months ago (2012-04-09 20:10:52 UTC) #5
Yaron
lgtm Please find appropriate OWNERS for the relevant sub-dirs http://codereview.chromium.org/9949033/diff/9012/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc File chrome/browser/ui/webui/ntp/ntp_resource_cache.cc (right): http://codereview.chromium.org/9949033/diff/9012/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc#newcode413 chrome/browser/ui/webui/ntp/ntp_resource_cache.cc:413: ...
8 years, 8 months ago (2012-04-09 20:38:55 UTC) #6
Jerome
http://codereview.chromium.org/9949033/diff/9012/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc File chrome/browser/ui/webui/ntp/ntp_resource_cache.cc (right): http://codereview.chromium.org/9949033/diff/9012/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc#newcode413 chrome/browser/ui/webui/ntp/ntp_resource_cache.cc:413: // If the user has preferences for a start ...
8 years, 8 months ago (2012-04-09 22:17:30 UTC) #7
Jerome
Dave, please review changes in: chrome/browser/profiles/ James, please review changes in: chrome/browser/ui/webui/ chrome/ chrome/common/ Thanks!
8 years, 8 months ago (2012-04-09 22:33:16 UTC) #8
Jerome
Ping :)
8 years, 8 months ago (2012-04-11 03:51:19 UTC) #9
James Hawkins
LGTM
8 years, 8 months ago (2012-04-11 18:24:36 UTC) #10
DaveMoore
lgtm
8 years, 8 months ago (2012-04-12 14:43:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jscholler@chromium.org/9949033/15002
8 years, 8 months ago (2012-04-12 14:47:56 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-12 16:14:33 UTC) #13
Change committed as 131994

Powered by Google App Engine
This is Rietveld 408576698