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

Issue 11369153: Reland: Closure-based API to PrefChangeObserver and PrefMember. (Closed)

Created:
8 years, 1 month ago by Jói
Modified:
8 years, 1 month ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, ben+watch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Reland: Closure-based API to PrefChangeObserver and PrefMember. The original was in http://codereview.chromium.org/11368098/ (landed as r166670) but seemed to increase memory usage significantly. This version does away with storing the pref name in callbacks, which should reduce memory usage. TBR=ben@chromium.org,finnur@chromium.org BUG=155525, 160177 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167179

Patch Set 1 #

Patch Set 2 : Preserve ability to register a plain base::Closure. #

Total comments: 1

Patch Set 3 : Now using Callback::is_null(). #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -78 lines) Patch
M base/prefs/public/pref_change_registrar.h View 1 3 chunks +27 lines, -11 lines 0 comments Download
M base/prefs/public/pref_change_registrar.cc View 1 4 chunks +40 lines, -34 lines 0 comments Download
M base/prefs/public/pref_change_registrar_unittest.cc View 7 chunks +22 lines, -13 lines 0 comments Download
M chrome/browser/api/prefs/pref_member.h View 1 2 3 5 chunks +37 lines, -6 lines 0 comments Download
M chrome/browser/api/prefs/pref_member.cc View 1 2 5 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Jói
8 years, 1 month ago (2012-11-09 13:52:47 UTC) #1
Jói
Hold off on this for a little bit; while working on updating the first batch ...
8 years, 1 month ago (2012-11-09 14:11:42 UTC) #2
Jói
OK, now I think it's ready for review. This is how I should have done ...
8 years, 1 month ago (2012-11-09 14:33:27 UTC) #3
Mattias Nissler (ping if slow)
looks good in general, one suggestion. http://codereview.chromium.org/11369153/diff/5001/chrome/browser/api/prefs/pref_member.h File chrome/browser/api/prefs/pref_member.h (right): http://codereview.chromium.org/11369153/diff/5001/chrome/browser/api/prefs/pref_member.h#newcode141 chrome/browser/api/prefs/pref_member.h:141: scoped_ptr<NamedChangeCallback> observer_; Other ...
8 years, 1 month ago (2012-11-09 14:47:50 UTC) #4
Jói
A Callback contains a scoped_refptr and a function pointer, so it takes two pointers in ...
8 years, 1 month ago (2012-11-09 14:56:15 UTC) #5
Jói
PTAL, switched to using Callback::is_null(). On Fri, Nov 9, 2012 at 2:55 PM, Jói Sigurðsson ...
8 years, 1 month ago (2012-11-09 15:06:10 UTC) #6
Jói
mnissler: Friendly ping. On Fri, Nov 9, 2012 at 3:05 PM, Jói Sigurðsson <joi@chromium.org> wrote: ...
8 years, 1 month ago (2012-11-12 13:48:40 UTC) #7
Mattias Nissler (ping if slow)
Sorry, I had missed your update somehow. LGTM.
8 years, 1 month ago (2012-11-12 13:52:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/11369153/7002
8 years, 1 month ago (2012-11-12 13:55:12 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-12 15:29:22 UTC) #10
Change committed as 167179

Powered by Google App Engine
This is Rietveld 408576698