|
|
Chromium Code Reviews|
Created:
4 years ago by afakhry Modified:
4 years ago CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionPrevent the pre-session-restore log spam
Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which
spams the logs with warnings and changes the state of the profile, and instead use
the newly added function in this CL to show the local NTP if the session restore
is still pending.
BUG=641191
Committed: https://crrev.com/50ade576fb3292ed44ba4d8e3e1d1a999840da82
Cr-Commit-Position: refs/heads/master@{#437013}
Patch Set 1 : Prevent the pre-session-restore log spam #Patch Set 2 : Fix browser_tests crashing on a null profile_manager #Patch Set 3 : Some unit_tests are using a testing profile manager #Patch Set 4 : Fix the remaining tests. #Patch Set 5 : Remove uneeded use of path service #
Total comments: 2
Patch Set 6 : Nit #
Total comments: 2
Messages
Total messages: 50 (36 generated)
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Prevent the pre-session-restore log spam BUG=641191 ========== to ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added functions in this CL to show the local NTP if the user profile hasn't been finalized yet or session restore is still pending. BUG=641191 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
afakhry@chromium.org changed reviewers: + xiyuan@chromium.org
Xiyuan, please take a look. Thanks!
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
lgtm Thanks
afakhry@chromium.org changed reviewers: + sky@chromium.org
+sky for search.cc. Thanks!
sky@chromium.org changed reviewers: + treib@chromium.org - sky@chromium.org
Please prefer a local owner here. Randomly swapping myself with treib@chromium.org.
c/b/search LGTM
The CQ bit was checked by afakhry@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added functions in this CL to show the local NTP if the user profile hasn't been finalized yet or session restore is still pending. BUG=641191 ========== to ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added function in this CL to show the local NTP if the session restore is still pending. BUG=641191 ==========
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Xiyuan, as discussed, I updated the CL to pass the tests, and removed the unnecessary use of path service.
lgtm https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeo... File chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc (right): https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeo... chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc:17: #include "chrome/browser/chromeos/profiles/profile_helper.h" nit: remove since no longer used?
https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeo... File chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc (right): https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeo... chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc:17: #include "chrome/browser/chromeos/profiles/profile_helper.h" On 2016/12/07 17:34:38, xiyuan wrote: > nit: remove since no longer used? Done.
The CQ bit was checked by afakhry@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from treib@chromium.org, xiyuan@chromium.org Link to the patchset: https://codereview.chromium.org/2537263002/#ps120001 (title: "Nit")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1481132949646810,
"parent_rev": "c8296dae7492f5b33105087d2c9fd640e0d0b3ae", "commit_rev":
"853ada9c6704c5121214a1bf0f46b60c9e264436"}
Message was sent while issue was closed.
Description was changed from ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added function in this CL to show the local NTP if the session restore is still pending. BUG=641191 ========== to ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added function in this CL to show the local NTP if the session restore is still pending. BUG=641191 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added function in this CL to show the local NTP if the session restore is still pending. BUG=641191 ========== to ========== Prevent the pre-session-restore log spam Avoid using merge_session_throttling_utils::ShouldDelayRequestForProfile() which spams the logs with warnings and changes the state of the profile, and instead use the newly added function in this CL to show the local NTP if the session restore is still pending. BUG=641191 Committed: https://crrev.com/50ade576fb3292ed44ba4d8e3e1d1a999840da82 Cr-Commit-Position: refs/heads/master@{#437013} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/50ade576fb3292ed44ba4d8e3e1d1a999840da82 Cr-Commit-Position: refs/heads/master@{#437013}
Message was sent while issue was closed.
wez@chromium.org changed reviewers: + wez@chromium.org
Message was sent while issue was closed.
https://codereview.chromium.org/2537263002/diff/120001/chrome/browser/chromeo... File chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc (right): https://codereview.chromium.org/2537263002/diff/120001/chrome/browser/chromeo... chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc:189: return false; Is |false| the correct value in this case? What does it even mean to call this for a null profile? https://codereview.chromium.org/2537263002/diff/120001/chrome/browser/chromeo... chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc:196: switch (login_manager->state()) { nit: This would be easier to read as an if(), rather than a switch. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
