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

Issue 2865473002: cros: Fix initiating wifi connection caused chrome crash (Closed)

Created:
3 years, 7 months ago by Qiang(Joe) Xu
Modified:
3 years, 7 months ago
Reviewers:
tdanderson, stevenjb
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Fix initiating wifi connection caused chrome crash Changes: sub_text could be empty and later become non-empty for wifi entries that are switching connection state. In this case, sub_text_label_ will become obsolete, but if we check if (!sub_text_label_) it will not be recreated, which might cause the crash. BUG=718411 TEST=tested on device that crash is fixed

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M ash/system/tray/hover_highlight_view.cc View 1 chunk +5 lines, -7 lines 1 comment Download

Messages

Total messages: 10 (7 generated)
Qiang(Joe) Xu
tdanderson@, would you help take a look if this fixes the issue. I don't know ...
3 years, 7 months ago (2017-05-04 17:07:59 UTC) #3
stevenjb
https://codereview.chromium.org/2865473002/diff/1/ash/system/tray/hover_highlight_view.cc File ash/system/tray/hover_highlight_view.cc (right): https://codereview.chromium.org/2865473002/diff/1/ash/system/tray/hover_highlight_view.cc#newcode62 ash/system/tray/hover_highlight_view.cc:62: sub_text_label_ = TrayPopupUtils::CreateDefaultLabel(); You still need the if (!sub_text_label_) ...
3 years, 7 months ago (2017-05-04 17:25:58 UTC) #8
Qiang(Joe) Xu
3 years, 7 months ago (2017-05-04 18:52:55 UTC) #10
Message was sent while issue was closed.
On 2017/05/04 17:25:58, stevenjb wrote:
>
https://codereview.chromium.org/2865473002/diff/1/ash/system/tray/hover_highl...
> File ash/system/tray/hover_highlight_view.cc (right):
> 
>
https://codereview.chromium.org/2865473002/diff/1/ash/system/tray/hover_highl...
> ash/system/tray/hover_highlight_view.cc:62: sub_text_label_ =
> TrayPopupUtils::CreateDefaultLabel();
> You still need the if (!sub_text_label_) test here, otherwise multiple labels
> will be added if this is called more than once.
> 
> It looks like the change should actually just be:
> 
> if (sub_text.empty()) {
>   if (sub_text_label_)
>     ... remove the label ...
>   return;
> }
> 
> ?

Let me close this issue. I didn't find the root cause. :/ Will delegate it to
mohsen@.

Powered by Google App Engine
This is Rietveld 408576698