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

Issue 2505283003: Fix Ctrl-A then Ctrl-X infinite loop in quick_launch. (Closed)

Created:
4 years, 1 month ago by Hadi
Modified:
4 years, 1 month ago
CC:
chromium-reviews, kalyank, sadrul, sky
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Ctrl-A then Ctrl-X infinite loop in quick_launch. Before this change, QuickLaunchUI::ContentsChanged() went to an infinite loop if (!suggestion_rejected_ && new_contents.length() == 0). This is because base::ReplaceSubstringsAfterOffset() expects a non-empty string to find. If DCHECK is off, this function goes to an infinite loop, otherwise it crashes. BUG=666113 Committed: https://crrev.com/f7f3104c87c624b39cb0df461bd45c29bf8387c9 Cr-Commit-Position: refs/heads/master@{#433000}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M mash/quick_launch/quick_launch.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Hadi
PTAL.
4 years, 1 month ago (2016-11-17 20:27:34 UTC) #2
sadrul
lgtm https://codereview.chromium.org/2505283003/diff/1/mash/quick_launch/quick_launch.cc File mash/quick_launch/quick_launch.cc (right): https://codereview.chromium.org/2505283003/diff/1/mash/quick_launch/quick_launch.cc#newcode99 mash/quick_launch/quick_launch.cc:99: if (new_contents.length() == 0) new_contents.empty()
4 years, 1 month ago (2016-11-17 20:32:47 UTC) #4
Hadi
https://codereview.chromium.org/2505283003/diff/1/mash/quick_launch/quick_launch.cc File mash/quick_launch/quick_launch.cc (right): https://codereview.chromium.org/2505283003/diff/1/mash/quick_launch/quick_launch.cc#newcode99 mash/quick_launch/quick_launch.cc:99: if (new_contents.length() == 0) On 2016/11/17 20:32:46, sadrul wrote: ...
4 years, 1 month ago (2016-11-17 20:44:32 UTC) #6
Ben Goodger (Google)
lgtm
4 years, 1 month ago (2016-11-17 21:26:40 UTC) #8
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/2505283003/20001
4 years, 1 month ago (2016-11-17 22:03:19 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-17 22:55:26 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:58:14 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f7f3104c87c624b39cb0df461bd45c29bf8387c9
Cr-Commit-Position: refs/heads/master@{#433000}

Powered by Google App Engine
This is Rietveld 408576698