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

Issue 1169903007: [NOT FOR REVIEW][Omnibox] Changing protocol scheme from https:// to http:// results in DCHECK.

Created:
5 years, 6 months ago by Pritam Nikam
Modified:
5 years, 3 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Omnibox] Changing protocol scheme from https:// to http:// results in DCHECK (Always). With present implementation, for giving scores to the history urls based on supplied term string, it calculates word start offsets for each term (word). However cases where term do not having word-part set to zero (as default). This leads to DCHECK(at_word_boundary) fail in later part execution inside ScoredHistoryMatch::GetTopicalityScore(). For example, term string "http ://", both the terms {"http", "://"} are offsets to {0, 0}. This patch, sets the missing word-parts start offset to the size of the term (word), i.e. for terms {"http", "://"} sets start offsets to {0, 3}, avoiding this DCHECK failure. BUG=495571 TEST=InMemoryURLIndexTest.AddHistoryMatch ----- NOT FOR REVIEW JUST TO VERIFY BUILDS -----

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Test 1292693004. #

Patch Set 8 : test #

Patch Set 9 : 497630 Part 1. #

Patch Set 10 : 497630 Part 2. #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -31 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +165 lines, -0 lines 0 comments Download
A chrome/test/data/password/ambiguous_password_form.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +22 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +115 lines, -31 lines 0 comments Download

Messages

Total messages: 10 (10 generated)
Pritam Nikam
pritam.nikam@samsung.com changed reviewers: - mpearson@chromium.org
5 years, 6 months ago (2015-06-10 08:12:45 UTC) #1
Pritam Nikam
Patchset #6 (id:100001) has been deleted
5 years, 6 months ago (2015-06-10 14:16:03 UTC) #2
Pritam Nikam
Patchset #5 (id:80001) has been deleted
5 years, 6 months ago (2015-06-10 14:16:10 UTC) #3
Pritam Nikam
Patchset #1 (id:1) has been deleted
5 years, 5 months ago (2015-07-08 06:13:57 UTC) #4
Pritam Nikam
Patchset #1 (id:20001) has been deleted
5 years, 5 months ago (2015-07-08 06:14:04 UTC) #5
Pritam Nikam
Patchset #1 (id:40001) has been deleted
5 years, 5 months ago (2015-07-08 06:14:14 UTC) #6
Pritam Nikam
Patchset #1 (id:60001) has been deleted
5 years, 5 months ago (2015-07-08 06:14:31 UTC) #7
Pritam Nikam
Patchset #1 (id:120001) has been deleted
5 years, 5 months ago (2015-07-08 06:14:39 UTC) #8
Pritam Nikam
Patchset #1 (id:140001) has been deleted
5 years, 5 months ago (2015-07-08 06:14:56 UTC) #9
Pritam Nikam
5 years, 5 months ago (2015-07-08 06:15:03 UTC) #10
Patchset #1 (id:160001) has been deleted

Powered by Google App Engine
This is Rietveld 408576698