|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by afakhry Modified:
4 years, 4 months ago CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, rginda+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAvoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy()
BUG=637333
Committed: https://crrev.com/9f27972d0fbb00d451c9ae3f741d1e22ddd25891
Cr-Commit-Position: refs/heads/master@{#413490}
Patch Set 1 : Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() #
Total comments: 4
Patch Set 2 : Early return #
Total comments: 2
Patch Set 3 : schedule next refresh #
Messages
Total messages: 45 (30 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...
Patchset #1 (id:1) has been deleted
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...
afakhry@chromium.org changed reviewers: + anthonyvd@chromium.org, tommi@chromium.org
tommi@chromium.org: Please review changes in tab_desktop_media_list.cc anthonyvd@chromium.org: Please review changes in profile_manager.cc
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
profile_manager.cc lgtm
On 2016/08/15 18:02:16, anthonyvd wrote: > profile_manager.cc lgtm tommi, friendly ping. Thank you.
Description was changed from ========== Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() BUG=637333 ========== to ========== Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() BUG=637333 ==========
afakhry@chromium.org changed reviewers: - tommi@chromium.org
afakhry@chromium.org changed reviewers: + sergeyu@chromium.org
tommi seems to be OOO. sergeyu@chromium.org: Please review changes in tab_desktop_media_list.cc
tommi@chromium.org changed reviewers: + tommi@chromium.org
rs lgtm https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... File chrome/browser/media/tab_desktop_media_list.cc (right): https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... chrome/browser/media/tab_desktop_media_list.cc:76: if (profile) { nit: Change to an early return?
https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... File chrome/browser/media/tab_desktop_media_list.cc (right): https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... chrome/browser/media/tab_desktop_media_list.cc:76: if (profile) { On 2016/08/17 11:38:00, tommi-ööö (chrömium) wrote: > nit: Change to an early return? Do we need to execute the ScheduleNextRefresh at the end of the function in this case?
lgtm https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... File chrome/browser/media/tab_desktop_media_list.cc (right): https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... chrome/browser/media/tab_desktop_media_list.cc:76: if (profile) { On 2016/08/17 15:33:00, afakhry wrote: > On 2016/08/17 11:38:00, tommi-ööö (chrömium) wrote: > > nit: Change to an early return? > > Do we need to execute the ScheduleNextRefresh at the end of the function in this > case? If profile can change then the answer is yes. Maybe ,ove the code that posts task for ScheduleNextRefresh() before this line?
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...
Patchset #2 (id:40001) has been deleted
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...)
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... File chrome/browser/media/tab_desktop_media_list.cc (right): https://codereview.chromium.org/2240823003/diff/20001/chrome/browser/media/ta... chrome/browser/media/tab_desktop_media_list.cc:76: if (profile) { On 2016/08/18 05:42:26, Sergey Ulanov wrote: > On 2016/08/17 15:33:00, afakhry wrote: > > On 2016/08/17 11:38:00, tommi-ööö (chrömium) wrote: > > > nit: Change to an early return? > > > > Do we need to execute the ScheduleNextRefresh at the end of the function in > this > > case? > > If profile can change then the answer is yes. Maybe ,ove the code that posts > task for ScheduleNextRefresh() before this line? It seems from the comment above the PostTaskAndRepy() at the end, that it should happen after UpdateSourceThumbnail() has been called for all favicons. Looks like this should be just an early return. PTAL.
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.
https://codereview.chromium.org/2240823003/diff/60001/chrome/browser/media/ta... File chrome/browser/media/tab_desktop_media_list.cc (right): https://codereview.chromium.org/2240823003/diff/60001/chrome/browser/media/ta... chrome/browser/media/tab_desktop_media_list.cc:77: return; I think ScheduleNextRefresh still need to be posted in this case. You can just call here directly: if (!profile) { ScheduleNextRefresh(); return; } Looking at this code again I'm not sure GetLastUsedProfileAllowedByPolicy() is the right thing to do here. It's probably better to pass Profile in the constructor and use it here.
The CQ bit was checked by afakhry@chromium.org to run a CQ dry run
https://codereview.chromium.org/2240823003/diff/60001/chrome/browser/media/ta... File chrome/browser/media/tab_desktop_media_list.cc (right): https://codereview.chromium.org/2240823003/diff/60001/chrome/browser/media/ta... chrome/browser/media/tab_desktop_media_list.cc:77: return; On 2016/08/20 01:08:48, Sergey Ulanov wrote: > I think ScheduleNextRefresh still need to be posted in this case. You can just > call here directly: > if (!profile) { > ScheduleNextRefresh(); > return; > } > Done. > Looking at this code again I'm not sure GetLastUsedProfileAllowedByPolicy() is > the right thing to do here. It's probably better to pass Profile in the > constructor and use it here. This comment should probably be handled as a refactor in a separate CL. For now let's keep this to fixing the crash.
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_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by afakhry@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from sergeyu@chromium.org, tommi@chromium.org, anthonyvd@chromium.org Link to the patchset: https://codereview.chromium.org/2240823003/#ps80001 (title: "schedule next refresh")
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_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
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...
Message was sent while issue was closed.
Description was changed from ========== Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() BUG=637333 ========== to ========== Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() BUG=637333 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() BUG=637333 ========== to ========== Avoid a crash in ProfileManager::GetLastUsedProfileAllowedByPolicy() BUG=637333 Committed: https://crrev.com/9f27972d0fbb00d451c9ae3f741d1e22ddd25891 Cr-Commit-Position: refs/heads/master@{#413490} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/9f27972d0fbb00d451c9ae3f741d1e22ddd25891 Cr-Commit-Position: refs/heads/master@{#413490} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
