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

Issue 2537263002: Prevent the pre-session-restore log spam (Closed)

Created:
4 years ago by afakhry
Modified:
4 years ago
Reviewers:
Marc Treib, xiyuan, Wez
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.

Description

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}

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
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M chrome/browser/chromeos/login/signin/merge_session_throttling_utils.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc View 1 2 3 4 5 1 chunk +23 lines, -0 lines 2 comments Download
M chrome/browser/search/search.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 50 (36 generated)
afakhry
Xiyuan, please take a look. Thanks!
4 years ago (2016-11-30 01:24:32 UTC) #10
xiyuan
lgtm Thanks
4 years ago (2016-11-30 17:32:39 UTC) #13
afakhry
+sky for search.cc. Thanks!
4 years ago (2016-11-30 17:40:43 UTC) #15
sky
Please prefer a local owner here. Randomly swapping myself with treib@chromium.org.
4 years ago (2016-11-30 21:27:52 UTC) #17
Marc Treib
c/b/search LGTM
4 years ago (2016-12-01 13:08:02 UTC) #18
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/2537263002/20001
4 years ago (2016-12-01 16:49:40 UTC) #20
commit-bot: I haz the power
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_chromeos_rel_ng/builds/325326)
4 years ago (2016-12-01 19:00:36 UTC) #22
afakhry
Xiyuan, as discussed, I updated the CL to pass the tests, and removed the unnecessary ...
4 years ago (2016-12-07 17:27:35 UTC) #38
xiyuan
lgtm https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc File chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc (right): https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc#newcode17 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?
4 years ago (2016-12-07 17:34:38 UTC) #39
afakhry
https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc File chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc (right): https://codereview.chromium.org/2537263002/diff/100001/chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc#newcode17 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: ...
4 years ago (2016-12-07 17:49:05 UTC) #40
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/2537263002/120001
4 years ago (2016-12-07 17:49:29 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years ago (2016-12-07 18:30:15 UTC) #46
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/50ade576fb3292ed44ba4d8e3e1d1a999840da82 Cr-Commit-Position: refs/heads/master@{#437013}
4 years ago (2016-12-07 18:35:06 UTC) #48
Wez
4 years ago (2016-12-08 18:33:26 UTC) #50
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.

Powered by Google App Engine
This is Rietveld 408576698