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

Issue 11307005: Improve performance of registering font preferences (Closed)

Created:
8 years, 1 month ago by aberent
Modified:
8 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Improve performance of registering font preferences Rather than using the preference registry to check which font preferences are already registered keep track locally of which font preferences have defaults and don't attempt to register these a second time. Change-Id: Ib1f9bc3937f230f2250b2fecc2a0590dabb5e2ca BUG=158818 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165449

Patch Set 1 #

Patch Set 2 : Removed redundant enum, left over from earlier version of code. #

Total comments: 1

Patch Set 3 : Completely new (much simpler) version of patch, just dealing with font preferences #

Total comments: 4

Patch Set 4 : Code review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -9 lines) Patch
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 3 chunks +23 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
aberent
8 years, 1 month ago (2012-10-30 11:37:40 UTC) #1
battre
CC'ed mnissler Hi. I don't like this change because it opens the path for whole ...
8 years, 1 month ago (2012-10-30 12:17:47 UTC) #2
Mattias Nissler (ping if slow)
On 2012/10/30 12:17:47, battre wrote: > CC'ed mnissler > > Hi. > > I don't ...
8 years, 1 month ago (2012-10-30 12:47:35 UTC) #3
aberent
On 2012/10/30 12:47:35, Mattias Nissler wrote: > On 2012/10/30 12:17:47, battre wrote: > > CC'ed ...
8 years, 1 month ago (2012-10-30 13:50:48 UTC) #4
Bernhard Bauer
IIRC, Matt added the font preferences. https://chromiumcodereview.appspot.com/11307005/diff/6/chrome/browser/prefs/pref_service.cc File chrome/browser/prefs/pref_service.cc (left): https://chromiumcodereview.appspot.com/11307005/diff/6/chrome/browser/prefs/pref_service.cc#oldcode791 chrome/browser/prefs/pref_service.cc:791: NOTREACHED() << "Tried ...
8 years, 1 month ago (2012-10-30 14:34:15 UTC) #5
falken
On 2012/10/30 14:34:15, Bernhard Bauer wrote: > IIRC, Matt added the font preferences. Yes, I ...
8 years, 1 month ago (2012-10-30 15:11:07 UTC) #6
Anthony Berent
I am rewriting this and splitting this into two parts: 1) In PrefService::RegisterPreference make the ...
8 years, 1 month ago (2012-10-31 19:57:48 UTC) #7
Anthony Berent
Part 2 is now in the new version of this CL.
8 years, 1 month ago (2012-11-01 12:22:38 UTC) #8
battre
LGTM but you may want to wait for somebody who is more familiar with the ...
8 years, 1 month ago (2012-11-01 14:41:03 UTC) #9
falken
lgtm http://codereview.chromium.org/11307005/diff/9001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): http://codereview.chromium.org/11307005/diff/9001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode135 chrome/browser/ui/prefs/prefs_tab_helper.cc:135: prefs->RegisterStringPref(pref_name, "", PrefService::UNSYNCABLE_PREF); nit: Maybe it's better to ...
8 years, 1 month ago (2012-11-01 15:26:49 UTC) #10
Anthony Berent
https://codereview.chromium.org/11307005/diff/9001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/11307005/diff/9001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode127 chrome/browser/ui/prefs/prefs_tab_helper.cc:127: const std::set<std::string> & fonts_with_defaults) { On 2012/11/01 14:41:03, battre ...
8 years, 1 month ago (2012-11-01 16:47:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/11307005/13001
8 years, 1 month ago (2012-11-01 16:48:07 UTC) #12
commit-bot: I haz the power
8 years, 1 month ago (2012-11-01 18:55:16 UTC) #13
Change committed as 165449

Powered by Google App Engine
This is Rietveld 408576698