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

Issue 160803002: Fixing M33 and M34 stable blocker crash with InsertAppLauncherItem (Closed)

Created:
6 years, 10 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 10 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Fixing M33 and M34 stable blocker crash with InsertAppLauncherItem The problem appears to be that the function GetLastActiveWebContents returns a WebContents pointer to some content which got already deleted. (See comment from CL). Note that this is only used in InsertAppLauncherItem to find the activity state. Note that this indicates that we could even get rid of that map and use app_id_to_web_contents to find if a tab is currently active. But again - keeping the CL small for the backport. This seems to be the most secure and isolated for for M33 and 34 - I will create an issue to follow up on this the proper way. BUG=341250 TEST=none (no test case known) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250874

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 1 chunk +24 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
6 years, 10 months ago (2014-02-12 19:08:51 UTC) #1
James Cook
LGTM with one suggestion https://codereview.chromium.org/160803002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/160803002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode1740 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:1740: if (!i->second.size()) { I think ...
6 years, 10 months ago (2014-02-12 19:23:29 UTC) #2
Mr4D (OOO till 08-26)
Done! Many thanks! https://codereview.chromium.org/160803002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/160803002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode1740 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:1740: if (!i->second.size()) { Done!
6 years, 10 months ago (2014-02-12 20:39:03 UTC) #3
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 10 months ago (2014-02-12 20:39:07 UTC) #4
Mr4D (OOO till 08-26)
The CQ bit was unchecked by skuhne@chromium.org
6 years, 10 months ago (2014-02-12 20:39:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/160803002/80001
6 years, 10 months ago (2014-02-12 20:39:42 UTC) #6
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 10 months ago (2014-02-12 20:39:56 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 00:56:46 UTC) #8
Message was sent while issue was closed.
Change committed as 250874

Powered by Google App Engine
This is Rietveld 408576698