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

Issue 2918053003: Settings reset prompt: Fetch default settings only when needed. (Closed)

Created:
3 years, 6 months ago by alito
Modified:
3 years, 6 months ago
Reviewers:
robertshield, csharp, sky
CC:
chromium-reviews, grt+watch_chromium.org, tfarina, vakh+watch_chromium.org, timvolodine, alito+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Settings reset prompt: Fetch default settings only when needed. Instead of fetching the default settings when we create the SettingsResetPromptModel object, which is some time after startup, we now fetch settings only if the settings reset dialog needs to be shown to the user. BUG=727829 Review-Url: https://codereview.chromium.org/2918053003 Cr-Commit-Position: refs/heads/master@{#477019} Committed: https://chromium.googlesource.com/chromium/src/+/d801058048b2af3c21e32efe9137561ead01e5ed

Patch Set 1 #

Patch Set 2 : Nit: Move function definition to match declaration order in header #

Total comments: 2

Patch Set 3 : Addressed Chris's comment #

Messages

Total messages: 22 (12 generated)
alito
Robert, Chris, could you take a look at this when you get a chance? I'd ...
3 years, 6 months ago (2017-06-02 04:14:11 UTC) #4
csharp
Overall LGTM, just one small suggestion https://codereview.chromium.org/2918053003/diff/20001/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc File chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc (right): https://codereview.chromium.org/2918053003/diff/20001/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc#newcode79 chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc:79: settings_types_initialized_(0), Worth moving ...
3 years, 6 months ago (2017-06-02 18:18:27 UTC) #7
alito
Thanks Chris. Robert? https://codereview.chromium.org/2918053003/diff/20001/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc File chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc (right): https://codereview.chromium.org/2918053003/diff/20001/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc#newcode79 chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc:79: settings_types_initialized_(0), On 2017/06/02 18:18:27, csharp wrote: ...
3 years, 6 months ago (2017-06-02 18:54:26 UTC) #8
robertshield
lgtm
3 years, 6 months ago (2017-06-02 21:31:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2918053003/40001
3 years, 6 months ago (2017-06-03 20:32:09 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/455190)
3 years, 6 months ago (2017-06-03 20:39:05 UTC) #14
alito
Adding sky@ for OWNERS approval for: chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc
3 years, 6 months ago (2017-06-03 20:46:05 UTC) #16
sky
LGTM
3 years, 6 months ago (2017-06-05 16:16:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2918053003/40001
3 years, 6 months ago (2017-06-05 16:53:34 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 17:56:03 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d801058048b2af3c21e32efe9137...

Powered by Google App Engine
This is Rietveld 408576698