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

Issue 553333006: Makes InfoBarService not close infobars on a reload from browser instant (Closed)

Created:
6 years, 3 months ago by sky
Modified:
6 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Makes InfoBarService not close infobars on a reload from browser instant BrowserInstantController calls Reload() if the google url changes. This triggers closing the session crashed info bar prematurely. Seems like we want this for all InfoBars, so I've centralized the ignore. BUG=401024 TEST=none R=pkasting@chromium.org Committed: https://crrev.com/4bdad24e8dc090068cb2cfcca50880186679eb7a Cr-Commit-Position: refs/heads/master@{#295546}

Patch Set 1 #

Patch Set 2 : fix race #

Total comments: 12

Patch Set 3 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -5 lines) Patch
M chrome/browser/infobars/infobar_service.h View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/infobars/infobar_service.cc View 1 2 4 chunks +23 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
sky
I would have liked a more clean way to identify the reload triggered from the ...
6 years, 3 months ago (2014-09-17 21:50:48 UTC) #1
Peter Kasting
Does the Reload() call result in NavigationEntryCommitted() getting called back synchronously? If not, there is ...
6 years, 3 months ago (2014-09-17 23:11:31 UTC) #2
sky
On 2014/09/17 23:11:31, Peter Kasting wrote: > Does the Reload() call result in NavigationEntryCommitted() getting ...
6 years, 3 months ago (2014-09-17 23:19:39 UTC) #3
Peter Kasting
On 2014/09/17 23:19:39, sky wrote: > There is a bubble implementation. It has the same ...
6 years, 3 months ago (2014-09-17 23:39:30 UTC) #4
sky
I believe I've addressed the race condition. Take another look?
6 years, 3 months ago (2014-09-18 15:49:37 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/553333006/diff/20001/chrome/browser/infobars/infobar_service.cc File chrome/browser/infobars/infobar_service.cc (right): https://codereview.chromium.org/553333006/diff/20001/chrome/browser/infobars/infobar_service.cc#newcode110 chrome/browser/infobars/infobar_service.cc:110: if (ignore_next_reload_ && IsReload(load_details)) Hmm, this seems subtle. ...
6 years, 3 months ago (2014-09-18 17:48:05 UTC) #6
sky
https://codereview.chromium.org/553333006/diff/20001/chrome/browser/infobars/infobar_service.cc File chrome/browser/infobars/infobar_service.cc (right): https://codereview.chromium.org/553333006/diff/20001/chrome/browser/infobars/infobar_service.cc#newcode110 chrome/browser/infobars/infobar_service.cc:110: if (ignore_next_reload_ && IsReload(load_details)) On 2014/09/18 17:48:04, Peter Kasting ...
6 years, 3 months ago (2014-09-18 19:22:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/553333006/40001
6 years, 3 months ago (2014-09-18 19:23:20 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 641ea7bf8760de7dbee94161bf5c99baf83b6428
6 years, 3 months ago (2014-09-18 20:22:27 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 20:23:18 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4bdad24e8dc090068cb2cfcca50880186679eb7a
Cr-Commit-Position: refs/heads/master@{#295546}

Powered by Google App Engine
This is Rietveld 408576698