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

Issue 12328054: Fix prefs registration for BrowserInstantController. (Closed)

Created:
7 years, 10 months ago by Jói
Modified:
7 years, 9 months ago
CC:
chromium-reviews, melevin, gideonwald, dominich, David Black, samarth+watch_chromium.org, Jered
Visibility:
Public.

Description

Fix prefs registration for BrowserInstantController. All preferences should be registered _before_ a PrefService is created, so reading other prefs during registration is a no-no. BUG=155525

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Fix comments around instant extended pref. #

Patch Set 4 : Switch to removing extended pref. #

Patch Set 5 : Preserve previous semantics. #

Total comments: 1

Patch Set 6 : Sketch of solution. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -25 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 1 chunk +7 lines, -0 lines 1 comment Download
M chrome/browser/ui/browser_instant_controller.h View 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 4 chunks +28 lines, -22 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 1 comment Download

Messages

Total messages: 33 (0 generated)
Jói
mnissler: Entire change. robertshield: Looks like you are familiar with the registration code there. Will ...
7 years, 10 months ago (2013-02-22 12:13:04 UTC) #1
Mattias Nissler (ping if slow)
https://codereview.chromium.org/12328054/diff/3001/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/12328054/diff/3001/chrome/browser/ui/browser_instant_controller.cc#newcode55 chrome/browser/ui/browser_instant_controller.cc:55: prefs->GetBoolean(prefs::kInstantEnabled)); Note this is a change in semantics, not ...
7 years, 10 months ago (2013-02-22 13:06:16 UTC) #2
robertshield
One request for additional comments, also please could you expand the CL description a bit ...
7 years, 10 months ago (2013-02-22 13:36:55 UTC) #3
Jói
I uploaded a new version to address Robert's comments, but after taking a closer look ...
7 years, 10 months ago (2013-02-22 15:53:19 UTC) #4
robertshield
On 2013/02/22 15:53:19, Jói wrote: > I uploaded a new version to address Robert's comments, ...
7 years, 10 months ago (2013-02-22 16:35:51 UTC) #5
Jói
I uploaded a new patch with the approach I described. I'm pretty sure this way ...
7 years, 10 months ago (2013-02-22 16:37:57 UTC) #6
Jói
Argh, you're kidding me, a hard-coded string? :( Let me look again. On Fri, Feb ...
7 years, 10 months ago (2013-02-22 16:39:46 UTC) #7
robertshield
On Fri, Feb 22, 2013 at 11:39 AM, Jói Sigurðsson <joi@chromium.org> wrote: > Argh, you're ...
7 years, 10 months ago (2013-02-22 16:43:31 UTC) #8
sreeram
What we were trying to do with the instant_extended.enabed pref is this: Previously, the chrome://settings ...
7 years, 10 months ago (2013-02-22 16:46:15 UTC) #9
sreeram
Also, forgot to say: For the time being, we want to keep both the prefs, ...
7 years, 10 months ago (2013-02-22 16:48:25 UTC) #10
Jói
OK, thanks Sreeram for the background. In this case I think I know how to ...
7 years, 10 months ago (2013-02-22 16:53:53 UTC) #11
sreeram
On 2013/02/22 16:53:53, Jói wrote: > I think there may still be a bug w.r.t. ...
7 years, 10 months ago (2013-02-22 16:57:23 UTC) #12
Jói
Great, thanks for all the background Sreeram. Could you take a look at the latest ...
7 years, 10 months ago (2013-02-22 16:59:56 UTC) #13
sreeram
lgtm
7 years, 10 months ago (2013-02-22 17:05:34 UTC) #14
Mattias Nissler (ping if slow)
https://codereview.chromium.org/12328054/diff/1006/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/12328054/diff/1006/chrome/browser/ui/browser_instant_controller.cc#newcode59 chrome/browser/ui/browser_instant_controller.cc:59: prefs->GetBoolean(prefs::kInstantEnabled)); After all the discussion, I don't think copying ...
7 years, 10 months ago (2013-02-22 17:07:55 UTC) #15
sreeram
Oh wait. One question: I guess the prefs->SetBoolean() call in the BrowserInstantController ctor will cause ...
7 years, 10 months ago (2013-02-22 17:09:52 UTC) #16
Mattias Nissler (ping if slow)
On Fri, Feb 22, 2013 at 6:09 PM, <sreeram@chromium.org> wrote: > Oh wait. One question: ...
7 years, 10 months ago (2013-02-22 17:11:03 UTC) #17
sreeram
On 2013/02/22 17:11:03, Mattias Nissler wrote: > Correct, what I proposed should address that. Sounds ...
7 years, 10 months ago (2013-02-22 17:13:43 UTC) #18
Jói
> Sounds good. We'll also need to change the webui code to then ask for ...
7 years, 10 months ago (2013-02-22 17:44:29 UTC) #19
sreeram
On 2013/02/22 17:44:29, Jói wrote: > > Sounds good. We'll also need to change the ...
7 years, 10 months ago (2013-02-22 18:09:59 UTC) #20
Jói
Thanks Sreeram. I haven't used WebUI, so any hints on how to call methods instead ...
7 years, 10 months ago (2013-02-22 21:58:54 UTC) #21
Jói
I don't have a full solution yet, but I've uploaded a sketch of what it ...
7 years, 10 months ago (2013-02-25 15:54:22 UTC) #22
Mattias Nissler (ping if slow)
https://codereview.chromium.org/12328054/diff/11008/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/12328054/diff/11008/chrome/browser/resources/options/browser_options.js#newcode171 chrome/browser/resources/options/browser_options.js:171: // it may be different from the value of ...
7 years, 10 months ago (2013-02-25 18:53:41 UTC) #23
Jói
It's kind of tricky. When I originally re-read this review thread this morning, and was ...
7 years, 10 months ago (2013-02-25 19:53:10 UTC) #24
sreeram
On Mon, Feb 25, 2013 at 7:54 AM, <joi@chromium.org> wrote: > I guess I could ...
7 years, 10 months ago (2013-02-25 21:51:02 UTC) #25
Jói
Hi Sreeram, If you are able to take this over as part of your refactoring, ...
7 years, 10 months ago (2013-02-26 10:56:37 UTC) #26
sreeram
On Tue, Feb 26, 2013 at 2:55 AM, Jói Sigurðsson <joi@chromium.org> wrote: > If you ...
7 years, 10 months ago (2013-02-26 14:51:30 UTC) #27
Jói
Hi Sreeram, I discussed this with Mattias and we have an idea that might avoid ...
7 years, 10 months ago (2013-02-26 17:03:22 UTC) #28
sreeram
On 2013/02/26 17:03:22, Jói wrote: > Hi Sreeram, > > I discussed this with Mattias ...
7 years, 10 months ago (2013-02-26 17:27:48 UTC) #29
Jói
Great, will do Sreeram. Cheers, Jói On Tue, Feb 26, 2013 at 5:27 PM, <sreeram@chromium.org> ...
7 years, 10 months ago (2013-02-26 17:35:11 UTC) #30
Mattias Nissler (ping if slow)
On Tue, Feb 26, 2013 at 6:34 PM, Jói Sigurðsson <joi@chromium.org> wrote: > Great, will ...
7 years, 10 months ago (2013-02-26 17:38:59 UTC) #31
sreeram
FYI: Joi is doing the SetDefaultValue stuff in https://codereview.chromium.org/12315116/. Perhaps this CL can be considered ...
7 years, 9 months ago (2013-02-27 03:17:32 UTC) #32
Jói
7 years, 9 months ago (2013-02-27 09:43:44 UTC) #33
Yes, closing.

On Wed, Feb 27, 2013 at 3:17 AM,  <sreeram@chromium.org> wrote:
> FYI: Joi is doing the SetDefaultValue stuff in
> https://codereview.chromium.org/12315116/. Perhaps this CL can be considered
> abandoned/closed?
>
> https://codereview.chromium.org/12328054/

Powered by Google App Engine
This is Rietveld 408576698